Jabir bin Abdullah reported,

Ibn Abbas reported that on the day of Badr, the captives were brought in, and Abbas was among them, but he had no garment on. The Prophet ﷺ looked for a shirt to fit him, and they found that the shirt of Abdullah bin Ubayy was the one that suited him, so the Prophet ﷺ clothed him in it. That is why the Prophet ﷺ later removed his own shirt and placed it on Abdullah bin Ubayy.Ibn Uyayna said, "Abdullah bin Ubayy had once done the Prophet ﷺ a favor, so he wished to repay him in kind."

Azami 8000

Sahih

عن جابر بن عبد الله قال

لما كان يوم بدر أتي بأسارى، وأتي بالعباس، ولم يكن عليه ثوب، فنظر النبي ﷺ له قميصا، فوجدوا قميص عبد الله بن أبي يقدر عليه، فكساه النبي ﷺ إياه، فلذلك نزع النبي ﷺ قميصه الذي ألبسه. قال ابن عيينة: كانت له عند النبي ﷺ يد، فأحب أن يكافئه.

الأعظمي 8000صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Captives
Section
Kindness to captives
Numbering
Jami al-Kamil 8000 (2nd edition)
Azami 8000