Sahih al-Bukhari 4098
Book 64: Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) · Narrated by Sahl bin Sa`d
Arabic
حَدَّثَنِي قُتَيْبَةُ، حَدَّثَنَا عَبْدُ الْعَزِيزِ، عَنْ أَبِي حَازِمٍ، عَنْ سَهْلِ بْنِ سَعْدٍ ـ رضى الله عنه ـ قَالَ كُنَّا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فِي الْخَنْدَقِ، وَهُمْ يَحْفِرُونَ، وَنَحْنُ نَنْقُلُ التُّرَابَ عَلَى أَكْتَادِنَا، فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " اللَّهُمَّ لاَ عَيْشَ إِلاَّ عَيْشُ الآخِرَهْ، فَاغْفِرْ لِلْمُهَاجِرِينَ وَالأَنْصَارِ ".
English translation
Narrated Sahl bin Sa`d:We were with Allah's Messenger (ﷺ) in the Trench, and some were digging the trench while we were carrying the earth on our shoulders. Allah's Messenger (ﷺ) said, 'O Allah! There is no life except the life of the Hereafter, so please forgive the Emigrants and the Ansar
Reference: Sahih al-Bukhari 4098, Book of Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi). English translation by Dr. Muhammad Muhsin Khan.