Prayer for Pardon, and Repentance - Section 2 Mishkat al-Masabih 2346
Arabic hadith text
وَعَنْ مُعَاوِيَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تَنْقَطِعُ الْهِجْرَةُ حَتَّى يَنْقَطِع التَّوْبَةُ وَلَا تَنْقَطِعُ التَّوْبَةُ حَتَّى تَطْلُعَ الشَّمْسُ مِنْ مَغْرِبِهَا» . رَوَاهُ أَحْمَدُ وَأَبُو دَاوُدَ وَالدَّارِمِيُّ
Translation
Mu'awiya reported God’s messenger as saying, "Emigration will not come to an end* till repentance comes to an end and repentance will not come to an end till the sun rises in-the place where it sets.” *This probably means that people will continue to leave districts in which it is difficult for them to observe their religion.Ahmad Abu Dawud and Darimi transmitted it.