Sahl bin Saad reported,

We were with the Messenger of Allah ﷺ at the Trench. They were digging while we carried the earth away on our backs. The Messenger of Allah ﷺ said, "O Allah, there is no life but the life of the Hereafter, so forgive the Emigrants and the Helpers."

Bukhari 4098

Sahih

حدثني قتيبة حدثنا عبد العزيز عن أبي حازم

عن سهل بن سعد رضي الله عنه قال

كنا مع رسول الله ﷺ في الخندق وهم يحفرون ونحن ننقل التراب على أكتادنا فقال رسول الله ﷺ اللهم لا عيش إلا عيش الآخره فاغفر للمهاجرين والأنصار

البخاري 4098صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Battle of Khandaq, which is Ahzab
Numbering
Darussalam 4098
Bukhari 4098