Bara bin Azib reported,

On the day of the Confederates, when the Messenger of Allah ﷺ was digging the trench, I saw him carrying dirt from the trench until the dust covered the skin of his belly, and he was a man with thick hair. I heard him chanting the verses of Ibn Rawahah as he carried the dirt, saying,"O Allah, were it not for You, we would not have been guided, nor given charity, nor prayed. So send down tranquility upon us and make our feet firm if we meet the enemy. Indeed, those people have transgressed against us, and if they intend strife, we refuse."Then he would stretch out his voice with the last word.

Bukhari 4106

Sahih

حدثني أحمد بن عثمان حدثنا شريح بن مسلمة قال حدثني إبراهيم بن يوسف قال حدثني أبي عن أبي إسحاق قال سمعت

البراء بن عازب يحدث قال

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

البخاري 4106صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Battle of Khandaq, which is Ahzab
Numbering
Darussalam 4106
Bukhari 4106