Hadithcore
Musnad Ahmad 1671
hasan· Darussalam

It was narrated from Ibn as-Sa"di that

The Prophet (ﷺ) said: "Hijrah (migration) will never cease so long as there is an enemy to be fought.“ Mu"awiyah, "Abdur Rahman bin ‘Awf and "Abdullah bin "Amr bin al-"As said: The Prophet (ﷺ) said: "Hijrah is of two types: one is forsaking (tahjur) bad deeds and the other is migrating (hijrah) for the sake of Allah and His Messenger. Hijrah will never cease so long as repentance can be accepted, for repentance will never cease to be accepted until the sun rises from its place of setting, when it rises thus, a seal will be placed on every heart with what is in it, and people will no longer have to strive.”

References1 variant
Arabic/English book
Book 10, Hadith 1671