Abdullah bin Abbas reported,

"Allah is sufficient for us, and He is the best disposer of affairs" [Aal Imran 3:173]. Ibrahim عليه السلام said it when he was thrown into the fire, and Muhammad ﷺ said it when they said, "Indeed, the people have gathered against you, so fear them. But it only increased them in faith, and they said, 'Allah is sufficient for us, and He is the best disposer of affairs.'" [Aal Imran 3:173].

Azami 8373

Sahih

عن عبد الله بن عباس

{حسبنا الله ونعم الوكيل} قالها إبراهيم عليه السلام حين ألقي في النار، وقالها محمد ﷺ حين قالوا: {إن الناس قد جمعوا لكم فأخشوهم فزادهم إيمنا وقالوا حسبنا الله ونعم الوكيل}

الأعظمي 8373صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
Ibrahim and his sons, peace be upon them
Section
Ibrahim's عليه السلام saying, "Allah is sufficient for me and the best disposer of affairs" when he was thrown into the fire
Numbering
Jami al-Kamil 8373 (2nd edition)
Azami 8373