Abdullah bin Abbas reported,

The Prophet ﷺ said on the day of Badr, "O Allah, I call upon You by Your covenant and Your promise. O Allah, if You wish, You will not be worshipped."Abu Bakr took him by the hand and said, "That is enough."Then he went out reciting, "Soon their multitude will be routed, and they will turn their backs in flight" [Qamar 54:45].

Bukhari 3953

Sahih

حدثني محمد بن عبيد الله بن حوشب حدثنا عبد الوهاب حدثنا خالد عن عكرمة

عن ابن عباس قال

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

البخاري 3953صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Allah's saying, "When you called upon your Lord for help, He responded to you, 'I will reinforce you with a thousand angels following one another.' And Allah made it not except as glad tidings and so that your hearts would be assured thereby. And victory is not except from Allah. Indeed, Allah is Mighty and Wise. When He covered you with drowsiness as security from Him and sent down upon you water from the sky to purify you thereby and remove from you the evil of Satan and to strengthen your hearts and make firm thereby your feet. When your Lord inspired the angels, 'I am with you, so strengthen those who have believed. I will cast terror into the hearts of those who disbelieved, so strike upon their necks and strike from them every fingertip.' That is because they opposed Allah and His Messenger. And whoever opposes Allah and His Messenger, indeed Allah is severe in punishment."
Numbering
Darussalam 3953
Bukhari 3953