Abdullah bin Abbas reported,

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

Bukhari 4563

Sahih

حدثنا أحمد بن يونس أراه قال حدثنا أبو بكر عن أبي حصين عن أبي الضحى

عن ابن عباس

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

البخاري 4563صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
People have gathered against you
Numbering
Darussalam 4563
Bukhari 4563