Abu Saeed Khudri reported,

He used to relate four things from the Prophet ﷺ which impressed and delighted me. He said, "A woman must not travel for two days unless accompanied by her husband or a close male 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 the dawn prayer until the sun rises, and after the afternoon prayer until it sets. And journeys should not be undertaken except to three mosques, the Sacred Mosque, the Aqsa Mosque, and my mosque."

Bukhari 1197

Sahih

حدثنا أبو الوليد حدثنا شعبة عن عبد الملك سمعت قزعة مولى زياد قال سمعت

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

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

البخاري 1197صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtue of prayer in the masjid of Makkah and Madinah
Chapter
Masjid of Bayt al-Maqdis
Numbering
Darussalam 1197
Bukhari 1197