Anas bin Malik reported,

Some men from the Ansar sought permission from the Messenger of Allah ﷺ, saying, "Messenger of Allah, allow us to waive the ransom of our nephew Abbas."He replied, "Do not leave a single dirham of it."

Azami 8002

Sahih

عن أنس بن مالك

أن رجالا من الأنصار استأذنوا رسول الله ﷺ فقالوا: يا رسول الله، ائذن فلنترك لابن أختنا عباس فداءه، فقال: لا تدعون منها درهما.

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