Ayesha reported,

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."

Azami 2531

Sahih

عن عائشة

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

الأعظمي 2531صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Sutrah
Section
Those who said that a woman does not invalidate the prayer
Numbering
Jami al-Kamil 2531 (2nd edition)
Azami 2531