Qaza reported,

I heard Abu Saeed, who had gone on twelve military expeditions with the Prophet ﷺ, say, "There are four things I heard from the Messenger of Allah ﷺ," or he said, "which he related from the Prophet ﷺ, that pleased and impressed me.A woman should not travel a distance of two days unless accompanied by her husband or a male relative within the prohibited degrees of marriage.There is no fasting on two days, the day of Fitr and the day of Adha.There is no prayer after two prayers, after Asr until the sun sets, and after Fajr until the sun rises.And journeys should not be undertaken except to three mosques, the Sacred Mosque, my mosque, and the Aqsa Mosque."

Azami 4742

Sahih

عن قزعة مولى زياد، قال

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

الأعظمي 4742صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Obligation of Hajj, its virtue, and its conditions
Section
Presence of a husband or mahram with a woman when traveling for Hajj and Umrah
Numbering
Jami al-Kamil 4742 (2nd edition)
Azami 4742