Ibn Abbas reported: The Prophet, peace and blessings be upon him, said on the day Mecca was liberated, “There is no longer emigration, but rather only jihad and good intentions. When you are called to duty, go forth.”
Source: Ṣaḥīḥ al-Bukhārī 3077, Ṣaḥīḥ Muslim 2912
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
Ibn Hajar said, “For one who is capable of emigration, yet can openly practice his religion and fulfill his obligations, then it is only recommended for him to emigrate in order to increase the ranks of the Muslims.”
Source: Fatḥ al-Bārī 6/190
عَنْ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا قَالَ قَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَوْمَ فَتْحِ مَكَّةَ لَا هِجْرَةَ وَلَكِنْ جِهَادٌ وَنِيَّةٌ وَإِذَا اسْتُنْفِرْتُمْ فَانْفِرُوا
3077 صحيح البخاري كتاب الجهاد والسير باب لا هجرة بعد الفتح
1353 صحيح مسلم كتاب الإمارة باب المبايعة بعد فتح مكة على الإسلام والجهاد والخير وبيان معنى لا هجرة بعد الفتح
وقال ابن حجر قَادِرٌ لَكِنَّهُ يُمْكِنُهُ إِظْهَارُ دِينِهِ وَأَدَاءُ وَاجِبَاتِهِ فَمُسْتَحَبَّةٌ لِتَكْثِيرِ الْمُسْلِمِينَ
6/190 فتح الباري شرح صحيح البخاري