Sahih al-Bukhari 4309
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنِي مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي بِشْرٍ، عَنْ مُجَاهِدٍ، قُلْتُ لاِبْنِ عُمَرَ ـ رضى الله عنهما ـ إِنِّي أُرِيدُ أَنْ أُهَاجِرَ إِلَى الشَّأْمِ. قَالَ لاَ هِجْرَةَ وَلَكِنْ جِهَادٌ، فَانْطَلِقْ فَاعْرِضْ نَفْسَكَ، فَإِنْ وَجَدْتَ شَيْئًا وَإِلاَّ رَجَعْتَ.
Narrated Mujahid:
I said to Ibn `Umar, "I want to migrate to Sham." He said, "There is no migration, but Jihad (for Allah's Cause). Go and offer yourself for Jihad, and if you find an opportunity for Jihad (stay there) otherwise, come back."
Full reference and source
Sahih al-Bukhari 4309 In-book : Book 64, Hadith 340 USC-MSA web (English) : Vol. 5, Book 59, Hadith 600 (deprecated)
View source on Sunnah.com (opens in a new tab)