It is narrated from Ata bin Abi Rabah (may Allah have mercy on him) that a man came to Sayyiduna Ibn Abbas (may Allah be pleased with them both) and said: "I have vowed that I will slaughter myself." Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: "Indeed, in the life of the Messenger of Allah (peace and blessings be upon him) there is an excellent example for you." Then he recited this verse: "And We ransomed him with a great sacrifice", (that is) with a ram; so that man slaughtered the ram.
Only al-Layth (may Allah have mercy on him) narrated this hadith from Yahya bin Sa'id (may Allah have mercy on him), and only Ibn Wahb (may Allah have mercy on him) from al-Layth (may Allah have mercy on him), and Abd al-Malik bin Shu'ayb (may Allah have mercy on him) is alone in narrating it.
Hadith Referenceالمعجم الأوسط / باب الألف / 208
Hadith Gradingمحدثین:رجاله رجال الصحيح
Hadith Takhrij«قال الهيثمي: رجاله رجال الصحيح «مجمع الزوائد ومنبع الفوائد، ج 4، ص 190»» «أخرجه البيهقي فى «السنن الكبرى» برقم: 20137، 20141، 20142، 20143، 20138، 20139، 20140، وعبد الرزاق فى «مصنفه» برقم: 15904، 15905، 15909، 15908، 15910، 15912، وابن أبي شيبة فى «مصنفه» برقم: 12652، 12653، 12660، والطبراني فى «الكبير» برقم: 11443، 11995»