Just as the ayaat about jihad are spread out all over in the Qur’an, hijrah too has been mentioned many times in most of the Surahs. A cumulative view of these ayaat shows that there are three kinds of themes in ayaat relating to hijrah. Firstly, there are the merits of hijrah; secondly, its worldly and other-worldly blessings; and thirdly, warnings against not migrating from dar-ul-Kufr despite having the ability to do so.
As for the merits of hijrah, Surah al-Baqarah ayah 218 says,
“Indeed, those who have believed and those who have emigrated and fought in the cause of Allah – those expect the mercy of Allah . And Allah is Forgiving and Merciful.”
The second ayah appears in Surah at-Tawbah,
“The ones who have believed, emigrated and striven in the cause of Allah with their wealth and their lives are greater in rank in the sight of Allah . And it is those who are the attainers [of success].”
The third ayah belongs to Surah an-Nisa,
“And whoever emigrates for the cause of Allah will find on the earth many [alternative] locations and abundance. And whoever leaves his home as an emigrant to Allah and His Messenger and then death overtakes him – his reward has already become incumbent upon Allah . And Allah is ever Forgiving and Merciful.”
According to some narrations, this ayah was revealed about Khalid ibn Hizam at the time of the migration to Ethiopia. He had left Makkah on his way to Ethiopia with the intention of hijrah. Enroute, a snake bit him which caused his death. In short, the three ayaat cited above have clearly emphasized hijrah from dar-ul-Kufr and the many merits it has.
In a hadith, the Prophet sallAllahu aalyhi wa sallam said, “Hijrah will undo all sins which may have been committed before it.”