Sahih al-Bukhari, Hadith 4098 ⓘ
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."
حَدَّثَنِي قُتَيْبَةُ، حَدَّثَنَا عَبْدُ الْعَزِيزِ، عَنْ أَبِي حَازِمٍ، عَنْ سَهْلِ بْنِ سَعْدٍ ـ رضى الله عنه ـ قَالَ كُنَّا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فِي الْخَنْدَقِ، وَهُمْ يَحْفِرُونَ، وَنَحْنُ نَنْقُلُ التُّرَابَ عَلَى أَكْتَادِنَا، فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " اللَّهُمَّ لاَ عَيْشَ إِلاَّ عَيْشُ الآخِرَهْ، فَاغْفِرْ لِلْمُهَاجِرِينَ وَالأَنْصَارِ " .
also referenced under: Book 64, Hadith 142 (In-Book) & Volume 5, Book 59, Hadith 424 (USC-MSA)