Anas bin Malik reported,

On the day of the Trench, the Ansar were chanting, "We are the ones who pledged allegiance to Muhammad, to strive in jihad as long as we live, forever."He replied to them, "O Allah, there is no life but the life of the Hereafter, so honor the Ansar and the Muhajirun."

Azami 10502

Sahih

عن أنس بن مالك قال

كانت الأنصار يوم الخندق تقول: نحن الذين بايعوا محمدا- على الجهاد ماحيينا أبدا فأجابهم: اللهم لا عيش إلا عيش الآخرة، فأكرم الأنصار والمهاجره.

الأعظمي 10502صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the tribes
Section
Supplication for the Ansar and the Muhajirun for righteousness, forgiveness, blessing, victory, and honor
Numbering
Jami al-Kamil 10502 (2nd edition)
Azami 10502