كتاب المغازى
64
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(29)
Chapter: The Ghazwa of Al-Khandaq or Al-Ahzab Battle
(29)
باب غَزْوَةُ الْخَنْدَقِ وَهْىَ الأَحْزَابُ
قَالَ مُوسَى بْنُ عُقْبَةَ كَانَتْ فِي شَوَّالٍ سَنَةَ أَرْبَعٍ.

Narrated Al-Bara:

When it was the day of Al-Ahzab (i.e. the clans) and Allah's Messenger (ﷺ) dug the trench, I saw him carrying earth out of the trench till dust made the skin of his `Abdomen out of my sight and he was a hairy man. I heard him reciting the poetic verses composed by Ibn Rawaha while he was carrying the earth, "O Allah! Without You we would not have been guided, nor would we have given in charity, nor would we have prayed. So, (O Allah), please send Sakina (i.e. calmness) upon us and make our feet firm if we meet the enemy, as they have rebelled against us. And if they intend affliction (i.e. want to frighten us, and fight against us) then we would not (flee but withstand them)." The Prophet (ﷺ) would then prolong his voice at the last words.

حَدَّثَنِي أَحْمَدُ بْنُ عُثْمَانَ، حَدَّثَنَا شُرَيْحُ بْنُ مَسْلَمَةَ، قَالَ حَدَّثَنِي إِبْرَاهِيمُ بْنُ يُوسُفَ، قَالَ حَدَّثَنِي أَبِي، عَنْ أَبِي إِسْحَاقَ، قَالَ سَمِعْتُ الْبَرَاءَ، يُحَدِّثُ قَالَ لَمَّا كَانَ يَوْمُ الأَحْزَابِ، وَخَنْدَقَ رَسُولُ اللَّهِ صلى الله عليه وسلم رَأَيْتُهُ يَنْقُلُ مِنْ تُرَابِ الْخَنْدَقِ حَتَّى وَارَى عَنِّي الْغُبَارُ جِلْدَةَ بَطْنِهِ، وَكَانَ كَثِيرَ الشَّعَرِ، فَسَمِعْتُهُ يَرْتَجِزُ بِكَلِمَاتِ ابْنِ رَوَاحَةَ، وَهْوَ يَنْقُلُ مِنَ التُّرَابِ يَقُولُ اللَّهُمَّ لَوْلاَ أَنْتَ مَا اهْتَدَيْنَا وَلاَ تَصَدَّقْنَا وَلاَ صَلَّيْنَا فَأَنْزِلَنْ سَكِينَةً عَلَيْنَا وَثَبِّتِ الأَقْدَامَ إِنْ لاَقَيْنَا إِنَّ الأُلَى قَدْ بَغَوْا عَلَيْنَا وَإِنْ أَرَادُوا فِتْنَةً أَبَيْنَا قَالَ ثُمَّ يَمُدُّ صَوْتَهُ بِآخِرِهَا‏.‏
Reference : Sahih al-Bukhari 4106
In-book reference : Book 64, Hadith 150
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 432
  (deprecated numbering scheme)