Abu Huraira reported: The Prophet, peace and blessings be upon him, said, “Do not undertake a religious journey except to three mosques: the Sacred Mosque in Mecca, the Mosque of the messenger of Allah, and the Farthest Mosque in Jerusalem.”
Source: Ṣaḥīḥ al-Bukhārī 1132, Ṣaḥīḥ Muslim 1397
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ لَا تُشَدُّ الرِّحَالُ إِلَّا إِلَى ثَلَاثَةِ مَسَاجِدَ الْمَسْجِدِ الْحَرَامِ وَمَسْجِدِ الرَّسُولِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَمَسْجِدِ الْأَقْصَى
1132 صحيح البخاري كتاب فضل الصلاة في مسجد مكة والمدينة باب فضل الصلاة في مسجد مكة والمدينة
1397 صحيح مسلم كتاب الحج باب لا تشد الرحال إلا إلى ثلاثة مساجد