I heard four things from the Messenger of Allah ﷺ which pleased me and impressed me. Affan said, "and delighted me." He forbade that a woman travel a distance of two days. Affan said, "or two nights," unless she is accompanied by her husband or a close male relative. He forbade prayer at two times, after the morning prayer until the sun rises, and after the afternoon prayer until it sets. He forbade fasting on two days, the Day of Sacrifice and the Day of Breaking the Fast. He said, "Do not set out on a journey except to three mosques, the Sacred Mosque, the Aqsa Mosque, and this mosque of mine."Affan said in his narration that Abdul-Malik bin Umayr said, "I was informed, he said, I heard Qaza, the freed slave of Ziyad."
قال حدثنا محمد بن جعفر وعفان قالا حدثنا شعبة عن عبد الملك بن عمير عن قزعة قال سمعت
سمعت من رسول الله ﷺ أربعا فأعجبنني وأينقنني قال عفان وآنقنني نهى أن تسافر المرأة مسيرة يومين قال عفان أو ليلتين إلا ومعها زوجها أو ذو محرم ونهى عن الصلاة في ساعتين بعد الغداة حتى تطلع الشمس وبعد العصر حتى تغيب ونهى عن صيام يومين يوم النحر ويوم الفطر وقال لا تشد الرحال إلا إلى ثلاثة مساجد مسجد الحرام ومسجد الأقصى ومسجدي هذا قال عفان في حديثه قال عبد الملك بن عمير أنبأني قال سمعت قزعة مولى زياد
Its isnad is sahih. Qazaah bin Yahya Basri is trustworthy, and the hadith is in Bukhari with similar wording, in the Book of Fasting, chapter on fasting on the Day of Sacrifice, 4/240, no. 1995, Fath, and in Muslim 2/976, no. 827, in the Book of Hajj, chapter on the travel of a woman.