Abdullah ibn Amr reported: A man asked, “O Messenger of Allah, which emigration is best?” The Messenger of Allah, peace and blessings be upon him, said, “To emigrate away from that which Allah disapproves. Emigration is of two kinds: the emigration of the resident and the bedouin. As for the emigration of the bedouin, he responds when he is called and he obeys when he is commanded. As for the emigration of the resident, its trial is more severe and its reward is greater.”
Source: Musnad Aḥmad 6813
Grade: Sahih (authentic) according to Al-Arna’ut
عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو أَنَّ رَجُلًا سَأَلَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَيُّ الْهِجْرَةِ أَفْضَلُ قَالَ أَنْ تَهْجُرَ مَا كَرِهَ رَبُّكَ وَهُمَا هِجْرَتَانِ هِجْرَةُ الْحَاضِرِ وَهِجْرَةُ الْبَادِي فَأَمَّا هِجْرَةُ الْبَادِي فَيُطِيعُ إِذَا أُمِرَ وَيُجِيبُ إِذَا دُعِيَ وَأَمَّا هِجْرَةُ الْحَاضِرِ فَهِيَ أَشَدُّهُمَا بَلِيَّةً وَأَعْظَمُهُمَا أَجْرًا
6813 مسند أحمد بن حنبل
11/416 المحدث شعيب الأرناؤوط خلاصة حكم المحدث صحيح في تخريج المسند لشعيب