The Prophet (ﷺ) said, "Do not set out on a journey except for three Mosques i.e…

Sahih al-Bukhari Book 20 Hadith 2

Sahih al-Bukhari #1189

Virtues of Prayer at Masjid Makkah and Madinah 20:2

Narrated Abu Huraira:

The Prophet (ﷺ) said, "Do not set out on a journey except for three Mosques i.e. Al-Masjid-AI-Haram, the Mosque of Allah's Messenger (ﷺ) , and the Mosque of Al-Aqsa, (Mosque of Jerusalem)."

Chapter: The superiority of offering As-Salat in the Mosque of Makkah and Al-Madina

Grade: Sahih