A friend told me that his teacher was teaching how Hijra (migration) to a more Islamically sound country is mandatory for Muslims if they live in a non-Muslim country.
But no sources were given for this statement. I have searched online but all I can really find is the Hijra Muhammad (PBUH) made.
It is mandatory only on those who are persecuted in their religion and had the means to migrate. Almighty God says in the holy Quran,
“Verily, those whom the angels recall [in death] having wronged themselves – [the angels] will say, “In what [condition] were you?” They will say, “We were oppressed in the land.” The angels will say, “Was not the earth of God spacious [enough] for you to emigrate therein?” For those, their refuge is Hell – and evil it is as a destination.
Except for the weakened among men, women and children who cannot devise a plan [to migrate] nor are they guided to a way [out]” (4:97-98)