Hadithcore
Sahih al-Bukhari, 3008
sahih

Narrated Jabir bin `Abdullah:

When it was the day (of the battle) of Badr, prisoners of war were brought including Al-Abbas who was undressed. The Prophet (ﷺ) looked for a shirt for him. It was found that the shirt of `Abdullah bin Ubai would do, so the Prophet (ﷺ) let him wear it. That was the reason why the Prophet (ﷺ) took off and gave his own shirt to `Abdullah. (The narrator adds, "He had done the Prophet (ﷺ) some favor for which the Prophet (ﷺ) liked to reward him.")

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ، حَدَّثَنَا ابْنُ عُيَيْنَةَ، عَنْ عَمْرٍو، سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ قَالَ لَمَّا كَانَ يَوْمَ بَدْرٍ أُتِيَ بِأُسَارَى، وَأُتِيَ بِالْعَبَّاسِ وَلَمْ يَكُنْ عَلَيْهِ ثَوْبٌ، فَنَظَرَ النَّبِيُّ صلى الله عليه وسلم لَهُ قَمِيصًا فَوَجَدُوا قَمِيصَ عَبْدِ اللَّهِ بْنِ أُبَىٍّ يَقْدُرُ عَلَيْهِ، فَكَسَاهُ النَّبِيُّ صلى الله عليه وسلم إِيَّاهُ، فَلِذَلِكَ نَزَعَ النَّبِيُّ صلى الله عليه وسلم قَمِيصَهُ الَّذِي أَلْبَسَهُ‏.‏ قَالَ ابْنُ عُيَيْنَةَ كَانَتْ لَهُ عِنْدَ النَّبِيِّ صلى الله عليه وسلم يَدٌ فَأَحَبَّ أَنْ يُكَافِئَهُ‏.‏

References2 variants
In-Book Reference
Book 56, Hadith 217
USC-MSA web (English) reference
Vol. 4, Book 52, Hadith 252 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prophet ﷺ was considerate of people’s different conditions, rewarded their acts of kindness in kind, and did not repay evil in kind. ‘Abdullaah ibn Ubaiyy ibn Salool was the leader of hypocrites in Al-Madeenah who inwardly nursed enmity towards the Prophet ﷺ and Muslims (while proclaiming otherwise). However, this did not dishearten the Prophet ﷺ to reward him for some good things he did. In this hadeeth, Jaabir ibn ‘Abdullah narrated that Al-‘Abbaas ibn ‘Abd Al-Muttalib(may Allah be pleased with them)was taken prisoner by the Muslims in the Battle of Badr, which took place between the Muslims and the disbelievers (of Quraysh) from Makkah in 2 A.H. and was brought to the Prophet ﷺ while being undressed. Heﷺ looked for a shirt for him and could not find any except that of ‘Abdullaah ibn Ubayy, so the Prophetﷺ let him wear it. As a reward, the Prophetﷺ took off and gave his own shirt to ‘Abdullaah’s son after his death to be shrouded in it. He ﷺ did so to reward his favor to Al-‘Abbaas(may Allah be pleased with him), and he ﷺ also led his funeral prayer, and came to his grave as requested by his son ‘Abdullaah ibn ‘Abdullaah ibn Ubayy(may Allah be pleased with him). It was also said that the Prophet ﷺ did so for the sake of his son, ‘Abdullaah ibn ‘Abdullaah ibn Ubayy(may Allah be pleased with him), out of the Prophet’s compassion for all Muslims and to console his son ‘Abdullaah, who was a righteous man, and also to win the hearts of the Khazraj tribe, for he was their chief. It is deduced from the hadeeth that Muslims should treat their prisoners of war kindly and provide them with the needed clothes. It is also inferred therefrom that it is permissible to reward favors to one’s relatives if they were done for his own sake and not at the request of such relatives. It is also deduced that the reward of favors may be given to a person during his lifetime or after his death..