From Sahih Bukhari (Hadith 2825):
Narrated Ibn `Abbas:On the day of the Conquest (of Mecca) the Prophet (ﷺ) said, "There is no emigration after the Conquest but Jihad and intentions. When you are called (by the Muslim ruler) for fighting, go forth immediately." (See Hadith No)
Reference: Bukhari 2825