Abdullah bin Amr bin As reported,

A man asked, "Messenger of Allah, which migration is best?"He replied, "That you abandon what your Lord dislikes." عز وجلThe Messenger of Allah ﷺ said, "Migration is of two kinds, the migration of the settled dweller and the migration of the desert nomad. As for the nomad, he responds when summoned and obeys when commanded. As for the settled dweller, his trial is greater and his reward is greater."

Nasai 4170

Sahih

أخبرنا أحمد بن عبد الله بن الحكم قال حدثنا محمد بن جعفر قال حدثنا شعبة عن عمرو بن مرة عن عبد الله بن الحارث عن أبي كثير

عن عبد الله بن عمرو قال

قال رجل يا رسول الله أي الهجرة أفضل قال أن تهجر ما كره ربك عز وجل وقال رسول الله ﷺ الهجرة هجرتان هجرة الحاضر وهجرة البادي فأما البادي فيجيب إذا دعي ويطيع إذا أمر وأما الحاضر فهو أعظمهما بلية وأعظمهما أجرا

النسائي 4170صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Pledge of allegiance
Chapter
Migration of the Bedouin
Numbering
Darussalam 4170
Nasai 4170