Mujahid reported,

I said to Ibn Umar, and he replied that there is no migration today, or after the Messenger of Allah ﷺMujahid reported, I said to Ibn Umar رضي الله عنهما, "I want to migrate to Syria."He said, "There is no migration now, but there is jihad. So set out, offer yourself, and if you find something, take it, and if not, come back."

Bukhari 4310

Sahih

وقال النضر أخبرنا شعبة أخبرنا أبو بشر سمعت مجاهدا قلت لابن عمر فقال لا هجرة اليوم أو بعد رسول الله ﷺ مثله

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