It is narrated from Ibn Ishaq (may Allah have mercy on him) that among the captives of Badr whom the Messenger of Allah (peace and blessings be upon him) released without ransom was al-Muttalib bin Hantab al-Makhzumi; he was needy and did not pay a ransom, so the Messenger of Allah (peace and blessings be upon him) did him a favour. And Abu Azzah al-Jumahi said: "O Messenger of Allah, I have daughters," so he (peace and blessings be upon him) showed him compassion and did him a favour. And the Messenger of Allah (peace and blessings be upon him) took a pledge from Sayfi bin Abid al-Makhzumi, but he did not fulfil it.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12840