The Messenger of Allah ﷺ said on the day of the Conquest of Mecca, "There is no migration after the conquest, but rather jihad and intention. So when you are called to march out, march out."
قال رسول الله ﷺ يوم الفتح، فتح مكة: لا هجرة، ولكن جهاد ونية وإذا استنفرتم فانفروا.
Bukhari reported it in the Book of Jihad (3077) and Muslim in the Book of Leadership (1353:85), both from the hadith of Mansur, from Mujahid, from Tawus, from Ibn Abbas, who mentioned it.