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 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 Ahmad 6774
Grade: Sahih (authentic) according to Ahmad Shakir
عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو أَنَّ رَجُلًا سَأَلَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَيُّ الْهِجْرَةِ أَفْضَلُ قَالَ أَنْ تَهْجُرَ مَا كَرِهَ رَبُّكَ وَهُمَا هِجْرَتَانِ هِجْرَةُ الْحَاضِرِ وَهِجْرَةُ الْبَادِي فَأَمَّا هِجْرَةُ الْبَادِي فَيُطِيعُ إِذَا أُمِرَ وَيُجِيبُ إِذَا دُعِيَ وَأَمَّا هِجْرَةُ الْحَاضِرِ فَهِيَ أَشَدُّهُمَا بَلِيَّةً وَأَعْظَمُهُمَا أَجْرًا
6774 مسند أحمد مسند المكثرين من الصحابة مسند عبد الله بن عمرو بن العاص رضي الله تعالى عنهما
المحدث أحمد شاكر خلاصة حكم المحدث إسناده صحيح
Source: Daily Hadith