Muhammad bin Ishaq (may Allah have mercy on him) said: Abu Azzah al-Jumahi had been taken captive at Badr. He said to the Prophet (peace and blessings be upon him): "O Muhammad (peace and blessings be upon him), I have daughters and I am in need, and there is no one in Makkah who will ransom me, and you (peace and blessings be upon him) know my condition." The Prophet (peace and blessings be upon him) spared his blood, freed him and let him go, and took a pledge from him that he would not help against the Prophet (peace and blessings be upon him) with hand or tongue; and he praised the Prophet (peace and blessings be upon him) when he (peace and blessings be upon him) pardoned him. (Then Ibn Ishaq mentioned his poetry.) Then he mentioned his story with Safwan bin Umayyah al-Jumahi: Safwan advised him to go out with him in the battle of Uhud and undertook to provide for his daughters, and he kept at him until he gave in, and he went out with the Ahabish of Banu Kinanah. Then Abu Azzah was taken captive on the day of Uhud, and when he was brought to the Prophet (peace and blessings be upon him), he said: "Do me a favour; let me go." The Prophet (peace and blessings be upon him) said: "No, so that the people of Makkah do not say that you toyed with Muhammad (peace and blessings be upon him) twice." And he (peace and blessings be upon him) ordered that he be killed.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12841