The last words of Ibrahim when he was cast into the fire were, "Allah is sufficient for me, and He is the best disposer of affairs."
كان آخر قول إبراهيم حين ألقي في النار: حسبي الله ونعم الوكيل.
Bukhari narrated it in the Tafsir (4564), from Malik bin Ismail, who said, Israil narrated to us, from Abu Husayn, from Abu Duha, from Ibn Abbas, and he related it.The scholars have differed regarding the statement of the Prophet ﷺ, "Allah is sufficient for us, and He is the best guardian," as to when he said it. The most sahih of what has been reported comes from Muhammad bin Ishaq, who said that he said this when the Prophet ﷺ was at Hamra al-Asad after the Battle of Uhud, and it reached him that Abu Sufyan had gathered his forces and set out toward the Prophet ﷺ and his companions in order to wipe out the remainder of them. So the Prophet ﷺ said, "Allah is sufficient for us, and He is the best guardian". Ibn Ishaq mentioned this in his Sirah, as it appears in detail in Sirat bin Hisham, on the authority of Abdullah bin Abu Bakr bin Muhammad bin Amr bin Hazm.As for what has been reported from Awf bin Malik, that he said, the Prophet ﷺ judged between two men, and the one against whom judgment was given said, as he turned away, "Allah is sufficient for me, and He is the best guardian," the Prophet ﷺ said, "Allah blames a person for helplessness, but you must act with cleverness. When a matter overcomes you, then say, Allah is sufficient for me, and He is the best guardian." This report contains an unknown narrator. It was narrated by Abu Dawud (3627) and Ahmad (23983), both by way of Baqiya bin Walid, who said, Buhayr bin Saad narrated to me, from Khalid bin Madan, from Sayf, from Awf bin Malik, and he related it.Sayf is Sayf Shami, an unknown narrator from whom no one reported except Khalid bin Madan. Nasai said, "I do not know him." Dhahabi said in al-Mizan, "He is not known." As for Ibn Hibban and Ajli, they both deemed him reliable, following their own principle of deeming reliable anyone against whom no criticism is known, which is a weak approach in the science of evaluating narrators, as I have said repeatedly.