← Sahih al-Bukhari
Sahih al-Bukhari · Hadith #1152 · Virtues of Prayer at Masjid Makkah and Madinah

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)."