حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا أَبُو إِيَاسٍ، عَنْ أَنَسِ بْنِ مَالِكٍ ـ رضى الله عنه ـ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ لاَ عَيْشَ إِلاَّ عَيْشُ الآخِرَةِ، فَأَصْلِحِ الأَنْصَارَ وَالْمُهَاجِرَةَ ‏"‏‏.‏ وَعَنْ قَتَادَةَ عَنْ أَنَسٍ عَنِ النَّبِيِّ صلى الله عليه وسلم مِثْلَهُ، وَقَالَ فَاغْفِرْ لِلأَنْصَارِ‏.‏
Translation
Narrated Anas bin Malik

On the day of the battle of the Trench (i.e. Ghazwat-ul-Khandaq) the Ansar used to say, "We are those who have given the pledge of allegiance to Muhammad for Jihad (i.e. holy fighting) as long as we live." The Prophet (ﷺ) , replied to them, "O Allah! There is no life except the life of the Hereafter; so please honor the Ansar and the Emigrants."