Sahih al-Bukhari, Book 63, Hadith 22 (Bukhari 3634)

Narrated Sahl:

Allah's Messenger (ﷺ) came to us while we were digging the trench and carrying out the earth on our backs. Allah's Messenger (ﷺ) then said, "O Allah ! There is no life except the life of the Hereafter, so please forgive the Emigrants and the Ansar."