Sayyiduna Sahl bin Sa'd al-Sa'idi (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) came to us while we were digging the trench and carrying the soil out on our shoulders, and the Messenger of Allah (peace and blessings be upon him) said:
'Allahumma la 'aysha illa 'aysh al-akhirah, faghfir lil-muhajirati wal-ansar' (O Allah, there is no good life except the better life of the Hereafter; O Allah, forgive the Muhajirun and the Ansar).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17889