Mujahid reported,

I said to Ibn Umar, "I want to migrate to Sham."He replied, "There is no migration, but there is jihad. So go and offer yourself. If you find something, well and good. Otherwise, you return."

Bukhari 4309

Sahih

حدثني محمد بن بشار حدثنا غندر حدثنا شعبة عن أبي بشر

عن مجاهد

قلت لابن عمر رضي الله عنهما إني أريد أن أهاجر إلى الشأم قال لا هجرة ولكن جهاد فانطلق فاعرض نفسك فإن وجدت شيئا وإلا رجعت

البخاري 4309صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Prophet's ﷺ stay in Makkah at the time of the conquest
Numbering
Darussalam 4309
Bukhari 4309