Abu Saeed Khudri reported,

The Prophet ﷺ said, "A woman must not travel for two days unless accompanied by her husband or a Muharram relative. There is no fasting on two days, the day of Fitr and the day of Adha. There is no prayer after two prayers, after Fajr until the sun rises, and after Asr until it sets. And journeys should not be undertaken except to three mosques, the Sacred Mosque, the Aqsa Mosque, and this mosque of mine."

Azami 10578

Sahih

عن أبي سعيد الخدري

عن النبي ﷺ قال: لا تسافر المرأة يومين إلا معها زوجها أو ذو محرم، ولا صوم في يومين: الفطر والأضحى، ولا صلاة بعد صلاتين: بعد الصبح حتى تطلع الشمس، وبعد العصر حتى تغرب، ولا تشد الرحال إلا إلى ثلاثة مساجد: مسجد الحرام، ومسجد الأقصى، ومسجدي.

الأعظمي 10578صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the lands
Chapter
Virtues of Makkah and Madinah together
Section
Virtue of the three mosques to which journeys should be made
Numbering
Jami al-Kamil 10578 (2nd edition)
Azami 10578