Ash shaykh Zaayid al Wusaabee mentioned regarding his (ﷺ) statement, “So whoever emigrated for Allah and His apostle”:
“Migration in the arabic language means leaving something off, and the intent here is leaving one’s land and moving to other than it. In the legislation it means to leave off that which Allah prohibited, and it occurred in Islam in two ways:
The first: Moving from a land of fear to a land of safety, as occurred during the two migrations to Abyssinia, and beginning of the migration from Meccah to Al Madeenah.
The second: Migrating from a land of disbelief to a land of belief and that was after the prophet صلى الله عليه و سلم settled in Al Madeenah, and those who were able from the Muslims migrated to it as well.” End quote. [Miskhul Khitaam 1/11]
Majid Jawed Al-Afghanee