It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Do not fast on two days, and do not pray at two times: do not fast on the day of Eid al-Fitr and the day of Eid al-Adha; and do not offer any prayer after Asr until the sun sets, nor after the Fajr prayer until the sun rises. And no woman should travel a distance of more than three days without one of her mahram relatives. And saddles are not to be fastened (for a journey of visitation and blessing) except to three mosques: al-Masjid al-Haram, this mosque of mine (the Prophet's Mosque), and Bayt al-Maqdis."
Imam Musaddad recorded it, and in his chain there is the narrator Mujalid bin Sa'id. Abd bin Humayd recorded only the part about the mosques from it, with a chain that includes Abu Harun al-Abdi. Abu Bakr bin Abi Shaybah recorded it with some additional wording. This narration will come (later) in the chapters on inheritance through marriage and on the prohibition of marrying a woman (the niece) while her paternal aunt is married to the same man. The original hadith prohibiting fasting on the two Eids is in the two Sahihs, and this account concerning fasting and prayer is in Sunan Abi Dawud.
Hadith Takhrij«رواه مسدد وفي سنده مجالد بن سعيد، وروى عبد بن حميد منه قصة المساجد فقط بسند فيه أبو هارون العبدي، ورواه أبو بكر بن أبي شيبة بزيادة، وسيأتي في الميراث بالنكاح وباب لا تنكح المرأة على عمتها، والنهي عن صومي العيدين في الصحيحين، وقصة الصوم والصلاة في أبي داود» «أخرجه المعجم الأوسط للطبراني برقم: 3651، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 5247»