It was mentioned in her presence that the dog, the donkey, and the woman invalidate the prayer.She said, "You have likened us to donkeys and dogs. By Allah, I saw the Prophet ﷺ praying while I was on the bed, lying between him and the qiblah. Sometimes I would need to get up, but I disliked sitting up and disturbing the Prophet ﷺ, so I would slip away from the foot of the bed."
ذكر عندها ما يقطع الصلاة- الكلب والحمار والمرأة. فقالت: شبهتمونا بالحمر والكلاب. والله لقد رأيت النبي ﷺ يصلي وإني على السرير، بينه وبين القبلة مضطجعة، فتبدو لي الحاجة، فأكره أن أجلس فأوذى النبي ﷺ، فانسل من عند رجليه.
Bukhari narrated it in "Prayer" (514), and Muslim in "Prayer" (270) (the smaller number), both from Umar bin Hafs bin Ghiyath, who said, my father narrated to us, who said, Amash narrated to us, who said, Ibrahim narrated to us, from Aswad, from Ayesha, and he mentioned the same. Amash said, and Muslim narrated to me, from Masruq, from Ayesha.Muslim also narrated it through the route of Abu Bakr bin Hafs, from Urwa bin Zubayr, who said, Ayesha said, "What breaks the prayer?" He said, so we said, "A woman and a donkey." She said, "A woman is indeed an evil beast! I have seen myself lying crosswise in front of the Messenger of Allah ﷺ, like the position of a corpse, while he was praying."Malik narrated it in "Night Prayer" (2) from Abu Nadr, the freed slave of Umar bin Ubaydullah, from Abu Salama bin Abdul-Rahman, from Ayesha, who said, "I used to sleep in front of the Messenger of Allah ﷺ with my legs stretched toward the direction he faced in prayer. When he prostrated, he would nudge me, so I would draw my legs in, and when he stood up, I would stretch them out again." She said, "In those days, the houses had no lamps."Bukhari narrated it in "Prayer" (382) from Ismail (who is Ibn Abu Uways), and Muslim in "Prayer" (272) (the smaller number) from Yahya bin Yahya, both of them from Malik with the same wording.This hadith of Ayesha has other routes in the Sahihayn and elsewhere. As for what Shuba narrated from Saad bin Ibrahim, from Urwa, from Ayesha, in which he said, "I think she said, and I was menstruating," it was narrated by Abu Dawud (710) from Muslim bin Ibrahim, from Shuba, with the same wording. He said, a group narrated it from a group, naming them, and they did not mention "menstruating."