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."
سمعت أبا سعيد. وقد غزا مع النبي ﷺ ثنتي عشرة غزوة- قال: أربع سمعتهن من رسول الله ﷺ- أو قال يحدثهن عن النبي ﷺ- فأعجبتني وأنقتني: أن لا تسافر امرأة مسيرة يومين ليس معها زوجها، أو ذو محرم، ولا صوم يومين: الفطر والأضحى، ولا صلاة بعد صلاتين: بعد العصر حتى تغرب الشمس وبعد الصبح حتى تطلع الشمس، ولا تشد الرحال إلا إلى ثلاثة مساجد: مسجد الحرام ومسجدي ومسجد الأقصى.
Bukhari narrated it in the book on the penalty for game (1864), and Muslim in Hajj (827/416), both of them through the route of Shuba, from Abdul-Malik bin Umayr, who said, "I heard Qazaa, the freedman of Ziyad" narrating it, and so he related it. The wording given here is Bukhari's. Muslim abridged it, restricting himself to the first hadith, then said, "and he continued with the rest of the hadith."I did not find the rest of the hadith gathered in one place in Sahih Muslim, but Bukhari narrated it (1864) from Sulayman bin Harb, who said, Shuba narrated to us with his chain, "that a woman should not travel a journey of two days without her husband or a mahram accompanying her, that there should be no fasting on two days, Eid al-Fitr and Eid al-Adha, that there should be no prayer after two prayers, after Asr until the sun sets, and after the dawn prayer until the sun rises, and that one should not set out on a journey except to three masjids, Masjid al-Haram, my masjid, and masjid Aqsa." Muslim mentioned it in scattered places.