كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(44)
Chapter: The Battle of Al-Ahzab (The Confederates), also known as Al-Khandaq (The Ditch)
(44)
باب غَزْوَةِ الأَحْزَابِ وَهِيَ الْخَنْدَقُ ‏‏
Sahih Muslim 1805 b

According to another version of the tradition, reported on the authority of Anas b. Malik, the Messenger of Allah (may peace he upon him) is reported to have said:

O God, there is no life but the life of the Hereafter, So grant honour to the Ansar and the Muhajirs.
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، وَابْنُ، بَشَّارٍ قَالَ ابْنُ الْمُثَنَّى حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، أَخْبَرَنَا شُعْبَةُ، عَنْ قَتَادَةَ، حَدَّثَنَا أَنَسُ بْنُ مَالِكٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يَقُولُ ‏"‏ اللَّهُمَّ إِنَّ الْعَيْشَ عَيْشُ الآخِرَةِ ‏"‏ ‏.‏ قَالَ شُعْبَةُ أَوْ قَالَ ‏"‏ اللَّهُمَّ لاَ عَيْشَ إِلاَّ‎عَيْشُ الآخِرَهْ فَأَكْرِمِ الأَنْصَارَ وَالْمُهَاجِرَهْ ‏"‏ ‏.‏
Reference : Sahih Muslim 1805b
In-book reference : Book 32, Hadith 156
USC-MSA web (English) reference : Book 19, Hadith 4446
  (deprecated numbering scheme)