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."
أَنَّ النَّبِيَّ ﷺ قَالَ فِي أُسَارَى بَدْرٍ لَوْ كَانَ الْمُطْعِمُ بْنُ عَدِيٍّ حَيًّا ثُمَّ كَلَّمَنِي فِي هَؤُلاَءِ النَّتْنَى لَتَرَكْتُهُمْ لَهُ