Translation
(56) Fighting for the Cause of Allah (Jihaad)
كتاب الجهاد والسير
(34) Chapter: The digging of the Khandaq (trench)
(34) باب حَفْرِ الْخَنْدَقِ
Sahih al-Bukhari 2836 

Narrated Al-Bara:

The Prophet (ﷺ) went on carrying (i.e. the earth) and saying, "Without You (O Allah!) we would have got no guidance."

حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي إِسْحَاقَ، سَمِعْتُ الْبَرَاءَ ـ رضى الله عنه ـ كَانَ النَّبِيُّ صلى الله عليه وسلم يَنْقُلُ وَيَقُولُ ‏ "‏ لَوْلاَ أَنْتَ مَا اهْتَدَيْنَا ‏"‏‏.‏
Reference : Sahih al-Bukhari 2836
In-book reference : Book 56, Hadith 52
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 89
  (deprecated numbering scheme)