The Prophet ﷺ said, "Do not set out on a journey except to three mosques: the Sacred Mosque, this mosque of mine, and the Aqsa Mosque."
حدثنا عبد الأعلى عن معمر عن الزهري عن سعيد بن المسيب
أن النبي ﷺ قال لا تشد الرحال إلا إلى ثلاث مساجد إلى المسجد الحرام ومسجدي هذا والمسجد الأقصى
Its isnad is sahih. Bukhari (3:51-52), Muslim (1:392), and Abu Dawud (2033, 2:166 Awn al-Mabud) all narrated it, all three by way of Sufyan bin Uyayna from Zuhri. Muslim also narrated it by way of Abdul-Ala from Maamar from Zuhri. Munziri (1950) also attributed it to Nasai and Ibn Majah.His saying "the ropes of camels should not be tied" — the Hafiz said in Al-Fath, with the first letter having a damma, in the form of a negation, and the intent is a prohibition against traveling to any place other than these. Tibi said, this is more emphatic than an explicit prohibition, as if he said, it is not proper to intend a visit except to these places, because of what distinguishes them from others."Rihal" with the unpointed letter is the plural of "rahl," which is for the camel what the saddle is for the horse. He used the tying of camel-ropes as a figure of speech for travel, because it necessarily accompanies it. Mentioning it in this way reflects the most common mode of travel for a traveler, but otherwise there is no difference between riding camels, horses, mules, or donkeys, or going on foot, with regard to the meaning intended.This is supported by his wording in some of its versions, "one should only travel," which Muslim extracted by way of Imran bin Abu Anas from Sulayman Agharr from Abu Hurairah.