From Sahih Bukhari (Hadith 3139):
Narrated Jubair bin Mut`im:The Prophet (ﷺ) talked about war prisoners of Badr saying, "Had Al-Mut`im bin Adi been alive and interceded with me for these mean people, I would have freed them for his sake
Reference: Bukhari 3139