AHMAD 1671:
from Ibn al-Saʿdī —
[Machine] The Prophet ﷺ said, "Emigration (hijrah) will not cease as long as the enemy is fought." Then Mu'awiyah, Abdullah ibn Awfa, and Abdullah ibn Amr ibn Al-As said, "Indeed, the Prophet ﷺ said, 'Emigration has two qualities: one is to abandon evil deeds, and the other is to migrate to Allah and His Messenger.' Emigration will not cease until repentance is accepted, and repentance will continue to be accepted until the sun rises from the west. Once the sun rises from the west, then the deeds of every heart will be sealed, and people will cease to perform good deeds."
أحمد ١٦٧١:
عن ابن السعدي —
أَنَّ النَّبِيَّ ﷺ قَالَ لَا تَنْقَطِعُ الْهِجْرَةُ مَا دَامَ الْعَدُوُّ يُقَاتَلُ فَقَالَ مُعَاوِيَةُ وَعَبْدُ الرَّحْمَنِ بْنُ عَوْفٍ وَعَبْدُ اللهِ بْنُ عَمْرِو بْنِ الْعَاصِ إِنَّ النَّبِيَّ ﷺ قَالَ إِنَّ الْهِجْرَةَ خَصْلَتَانِ إِحْدَاهُمَا أَنْ تَهْجُرَ السَّيِّئَاتِ وَالْأُخْرَى أَنْ تُهَاجِرَ إِلَى اللهِ وَرَسُولِهِ وَلا تَنْقَطِعُ الْهِجْرَةُ مَا تُقُبِّلَتِ التَّوْبَةُ وَلا تَزَالُ التَّوْبَةُ مَقْبُولَةً حَتَّى تَطْلُعَ الشَّمْسُ مِنَ المَغْرِبِ فَإِذَا طَلَعَتْ طُبِعَ عَلَى كُلِّ قَلْبٍ بِمَا فِيهِ وَكُفِيَ النَّاسُ الْعَمَلَ
hadithunlocked.com