Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai-kubra:11813ʿImrān b. Mūsá > ʿAbd al-Wārith > ʿAbd al-ʿAzīz b. Ṣuhayb > Anas

[Machine] The Prophet ﷺ said, "O Allah, there is no good except the good of the Hereafter, so bless the Ansar and the Muhajirun."  

الكبرى للنسائي:١١٨١٣عَنْ عِمْرَانَ بْنِ مُوسَى عَنْ عَبْدِ الْوَارِثِ عَنْ عَبْدِ الْعَزِيزِ بْنِ صُهَيْبٍ عَنْ أَنَسٍ

عَنِ النَّبِيِّ ﷺ قَالَ «اللهُمَّ لَا خَيْرَ إِلَّا خَيْرُ الْآخِرَهْ فَبَارِكْ فِي الْأَنْصَارِ وَالْمُهَاجِرَهْ»  


See similar narrations below:

Collected by Aḥmad, Suyūṭī
ahmad:13191Sulaymān > Shuʿbah > Muʿāwiyah b. Qurrah > Anas

[Machine] The Prophet of Allah ﷺ said while they were digging the trench, "O Allah, there is no good except the good of the hereafter. So, rectify the Ansar and the Muhajirun."  

أحمد:١٣١٩١حَدَّثَنَا سُلَيْمَانُ حَدَّثَنَا شُعْبَةُ عَنْ مُعَاوِيَةَ بْنِ قُرَّةَ عَنْ أَنَسٍ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ وَهُمْ يَحْفِرُونَ الْخَنْدَقَ اللهُمَّ لَا خَيْرَ إِلَّا خَيْرَ الْآخِرَهْ فَأَصْلِحِ الْأَنْصَارَ وَالْمُهَاجِرَهْ