Bara bin Azib reported,

I saw the Prophet ﷺ on the day of the Trench carrying earth with us, saying, "By Allah, were it not for Allah we would not have been guided, nor fasted, nor prayed. So send down tranquility upon us and make our feet firm if we meet the enemy. The polytheists have transgressed against us, but when they seek to lead us astray, we refuse."

Bukhari 6620

Sahih

حدثنا أبو النعمان أخبرنا جرير هو ابن حازم عن أبي إسحاق

عن البراء بن عازب قال

رأيت النبي ﷺ يوم الخندق ينقل معنا التراب وهو يقول والله لولا الله ما اهتدينا ولا صمنا ولا صلينا فأنزلن سكينة علينا وثبت الأقدام إن لاقينا والمشركون قد بغوا علينا إذا أرادوا فتنة أبينا

البخاري 6620صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Decree
Chapter
And we would not have been guided if Allah had not guided us
Numbering
Darussalam 6620
Bukhari 6620