The Messenger of Allah ﷺ said, "Do not undertake a journey except to three mosques: the Sacred Mosque, the Aqsa Mosque, and this mosque of mine."
حدثنا هشام بن عمار حدثنا محمد بن شعيب حدثنا يزيد بن أبي مريم عن قزعة
أن رسول الله ﷺ قال لا تشد الرحال إلا إلى ثلاثة مساجد إلى المسجد الحرام وإلى المسجد الأقصى وإلى مسجدي هذا
Bukhari narrated it in the chapter on the merit of praying in the masjid of Makkah and Madinah, section on the masjid of Bayt al-Maqdis, hadith no. 1197, and elsewhere, and Muslim narrated it in the chapter on Hajj, section on a woman traveling with a mahram for Hajj and elsewhere, hadith no. 827, from the hadith of Qazaa from Abu Saeed with the same wording.