Ayesha reported,

It was mentioned in her presence what interrupts the prayer, and they said, "The dog, the donkey, and the woman interrupt it."Ayesha replied, "You have made us equal to dogs! I saw the Prophet ﷺ praying while I was between him and the qiblah, lying on the bed. When I needed something and disliked facing him directly, I would slip away quietly."Amash also reported a similar narration from Ibrahim, from Aswad, from Ayesha.

Bukhari 511

Sahih

حدثنا إسماعيل بن خليل حدثنا علي بن مسهر عن الأعمش عن مسلم يعني ابن صبيح عن مسروق

عن عائشة

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

البخاري 511صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
A man facing his companion or someone else in his prayer while he is praying
Numbering
Darussalam 511
Bukhari 511