The Messenger of Allah ﷺ said, "Do not set out on a journey except to three mosques: the Sacred Mosque, this mosque of mine, and the Aqsa Mosque."
حدثنا أبو بكر بن أبي شيبة حدثنا عبد الأعلى عن معمر عن الزهري عن سعيد بن المسيب
أن رسول الله ﷺ قال لا تشد الرحال إلا إلى ثلاثة مساجد مسجد الحرام ومسجدي هذا والمسجد الأقصى
Bukhari narrated it, in the Excellence of Prayer in the Masjid of Makkah and Madinah, chapter 1, hadith no. 1189, and Muslim, in Hajj, chapter on the Excellence of the Three Masjids, hadith no. 1397, from the hadith of Zuhri, through this chain.