Ata bin Abi Rabah (may Allah have mercy on him) narrated that a man came to Ibn Abbas (may Allah be pleased with them both) and said: I have vowed to slaughter myself. Ibn Abbas (may Allah be pleased with them both) said: "Indeed, in the Messenger of Allah you have an excellent example." [Surah al-Ahzab: 21] Then Ibn Abbas (may Allah be pleased with them both) recited: "And We ransomed him with a great sacrifice." [Surah al-Saffat: 107] This indicates that by 'the Messenger of Allah' here, Ibrahim (peace be upon him) is meant, and (blessings) upon our Prophet (peace and blessings be upon him).
(b) Another fatwa on this matter has also been reported from Ibn Abbas (may Allah be pleased with them both).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 20083