(102) باب اسْتِقْبَالِ الرَّجُلِ صَاحِبَهُ أَوْ غَيْرَهُ فِي صَلاَتِهِ وَهُوَ يُصَلِّي
Narrated `Aisha:
The things which annul the prayers were mentioned before me. They said, "Prayer is annulled by a dog, a donkey and a woman (if they pass in front of the praying people)." I said, "You have made us (i.e. women) dogs. I saw the Prophet (ﷺ) praying while I used to lie in my bed between him and the Qibla. Whenever I was in need of something, I would slip away. for I disliked to face him."
Reference: Sahih al-Bukhari 511
In-book reference: Book 8, Hadith 158
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 9, Hadith 490