Abdullah bin Abbas reported,

Ibn Abbas said regarding "Allah is sufficient for us, and He is the best disposer of affairs" [Aal Imran 3:173], Ibrahim عليه السلام said it when he was cast into the fire, and Muhammad ﷺ said it when the people 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 12105

Sahih

عن ابن عباس

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

الأعظمي 12105صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "Those to whom the people said, 'Indeed, the people have gathered against you, so fear them.' But it increased them in faith, and they said, 'Allah is sufficient for us, and He is the best disposer of affairs.'"
Numbering
Jami al-Kamil 12105 (2nd edition)
Azami 12105