The Book of Jihad and Expeditions
Ṣaḥīḥ Muslim 4675
اللَّهُمَّ لاَ خَيْرَ إِلاَّ خَيْرُ الآخِرَهْ فَانْصُرِ الأَنْصَارَ وَالْمُهَاجِرَهْ وَفِي حَدِيثِ شَيْبَانَ بَدَلَ فَانْصُرْ فَاغْفِرْ
Allāhumma lā khayra illā khayru al-ākhirah fānṣuri al-anṣāra wa-l-muhājirah wafī ḥadīthi shaybāna badala fānṣur fāghfir
Transliteration generated from the Arabic vowel marks
The full narration
According to still another version of the tradition narrated by the same authority, and handed down through a different chain of transmitters, it has been reported that they (the Companions of the Holy Prophet) were reciting rajaz verses and the Messenger of Allah (ﷺ) was (reciting) with them. And they were chanting:O God, there is no good but the good of the Hereafter. So help Thou the Ansar and the Muhajirs. Shaiban substituted" So forgive Thou" for" So help Thou
Source
Ṣaḥīḥ Muslim · 4675
- Agreed upon as authentic (al-Bukhārī / Muslim)