Language:
كتاب الجهاد والسير
56  
Fighting for the Cause of Allah (Jihaad)
(33)
Chapter: Rousing and exhorting people to fight
(33)
باب التَّحْرِيضِ عَلَى الْقِتَالِ
Sahih al-Bukhari 2834

Narrated Anas:

Allah's Messenger (ﷺ) went towards the Khandaq (i.e. Trench) and saw the Emigrants and the Ansar digging in a very cold morning as they did not have slaves to do that for them. When he noticed their fatigue and hunger he said, "O Allah! The real life is that of the Here-after, (so please) forgive the Ansar and the Emigrants." In its reply the Emigrants and the Ansar said, "We are those who have given a pledge of allegiance to Muhammad that we will carry on Jihad as long as we live."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ، حَدَّثَنَا مُعَاوِيَةُ بْنُ عَمْرٍو، حَدَّثَنَا أَبُو إِسْحَاقَ، عَنْ حُمَيْدٍ، قَالَ سَمِعْتُ أَنَسًا ـ رضى الله عنه ـ يَقُولُ خَرَجَ رَسُولُ اللَّهِ صلى الله عليه وسلم إِلَى الْخَنْدَقِ فَإِذَا الْمُهَاجِرُونَ وَالأَنْصَارُ يَحْفِرُونَ فِي غَدَاةٍ بَارِدَةٍ، فَلَمْ يَكُنْ لَهُمْ عَبِيدٌ يَعْمَلُونَ ذَلِكَ لَهُمْ، فَلَمَّا رَأَى مَا بِهِمْ مِنَ النَّصَبِ وَالْجُوعِ قَالَ اللَّهُمَّ إِنَّ الْعَيْشَ عَيْشُ الآخِرَهْ فَاغْفِرْ لِلأَنْصَارِ وَالْمُهَاجِرَهْ‏.‏ فَقَالُوا مُجِيبِينَ لَهُ نَحْنُ الَّذِينَ بَايَعُوا مُحَمَّدًا عَلَى الْجِهَادِ مَا بَقِينَا أَبَدًا
Reference : Sahih al-Bukhari 2834
In-book reference : Book 56, Hadith 50
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 87
  (deprecated numbering scheme)
(34)
Chapter: The digging of the Khandaq (trench)
(34)
باب حَفْرِ الْخَنْدَقِ
Sahih al-Bukhari 2835

Narrated Anas:

The Emigrants and the Ansar started digging the trench around Medina carrying the earth on their backs and saying, "We are those who have given a pledge of allegiance to Muhammad that we will I carry on Jihad as long as we live." The Prophet (ﷺ) kept on replying, "O Allah, there is no good except the good of the Hereafter; so confer Your Blessings on the Ansar and the Emigrants."

حَدَّثَنَا أَبُو مَعْمَرٍ، حَدَّثَنَا عَبْدُ الْوَارِثِ، حَدَّثَنَا عَبْدُ الْعَزِيزِ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ جَعَلَ الْمُهَاجِرُونَ وَالأَنْصَارُ يَحْفِرُونَ الْخَنْدَقَ حَوْلَ الْمَدِينَةِ، وَيَنْقُلُونَ التُّرَابَ عَلَى مُتُونِهِمْ وَيَقُولُونَ نَحْنُ الَّذِينَ بَايَعُوا مُحَمَّدًا عَلَى الإِسْلاَمِ مَا بَقِينَا أَبَدًا وَالنَّبِيُّ صلى الله عليه وسلم يُجِيبُهُمْ وَيَقُولُ اللَّهُمَّ إِنَّهُ لاَ خَيْرَ إِلاَّ خَيْرُ الآخِرَهْ فَبَارِكْ فِي الأَنْصَارِ وَالْمُهَاجِرَهْ‏.‏
Reference : Sahih al-Bukhari 2835
In-book reference : Book 56, Hadith 51
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 88
  (deprecated numbering scheme)