It is narrated from Sayyiduna Abd al-Rahman bin Awf, Sayyiduna Mu'awiyah bin Abi Sufyan and Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them) that the Messenger of Allah (peace and blessings be upon him) said: "Hijrah is of two kinds: one is that a person abandons evil deeds, and the other is that he migrates to Allah and His Messenger. And hijrah does not cease as long as repentance is accepted, and repentance will continue to be accepted until the sun rises from the west. When it rises, every heart will be sealed with whatever (state) is in it, and people will be spared from deeds (that is, the opportunity for deeds will be over)."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 16944