Sahih al-Bukhari 3049
Sahih al-Bukhari · Book 56: Fighting for the Cause of Allah (Jihaad) · The ransom of Al-Mushrikun
(In another narration) Anas said:
وَقَالَ إِبْرَاهِيمُ عَنْ عَبْدِ الْعَزِيزِ بْنِ صُهَيْبٍ ، عَنْ أَنَسٍ ، قَالَ أُتِيَ النَّبِيُّ صلى الله عليه وسلم بِمَالٍ مِنَ الْبَحْرَيْنِ، فَجَاءَهُ الْعَبَّاسُ فَقَالَ يَا رَسُولَ اللَّهِ، أَعْطِنِي فَإِنِّي فَادَيْتُ نَفْسِي، وَفَادَيْتُ عَقِيلاً. فَقَالَ " خُذْ ". فَأَعْطَاهُ فِي ثَوْبِهِ.
"Some wealth was brought to the Prophet (ﷺ) from Bahrain. Al `Abbas came to him and said, 'O Allah's Messenger (ﷺ)! Give me (some of it), as I have paid my and `Aqil's ransom.' The Prophet (ﷺ) said, 'Take,' and gave him in his garment."