Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:512d[Chain 1] ʿAmr al-Nāqid And ʾAbū Saʿīd al-Ashaj > Ḥafṣ b. Ghiyāth [Chain 2] ʿUmar b. Ḥafṣ b. Ghiyāth from my father > al-Aʿmash > Ibrāhīm > al-Aswad > ʿĀʾishah > al-Aʿmash > Muslim > Masrūq

It was mentioned before'A'isha that prayer is invalidated (in case of passing) of a dog, an ass and a woman (before the worshipper, when he is not screened). Upon this 'A'isha said: You likened us to the asses and the dogs. By Allah I saw the Messenger of Allah ﷺ saying prayer while I lay on the bedstead interposing between him and the Qibla. When I felt the need, I did not like to wit to front (of the Holy Prophet) and perturb the Messenger of Allah ﷺ and quietly moved out from under its (i. e. of the bedstead) legs.  

مسلم:٥١٢dحَدَّثَنَا عَمْرٌو النَّاقِدُ وَأَبُو سَعِيدٍ الأَشَجُّ قَالاَ حَدَّثَنَا حَفْصُ بْنُ غِيَاثٍ ح قَالَ وَحَدَّثَنَا عُمَرُ بْنُ حَفْصِ بْنِ غِيَاثٍ وَاللَّفْظُ لَهُ حَدَّثَنَا أَبِي حَدَّثَنَا الأَعْمَشُ حَدَّثَنِي إِبْرَاهِيمُ عَنِ الأَسْوَدِ عَنْ عَائِشَةَ قَالَ الأَعْمَشُ وَحَدَّثَنِي مُسْلِمٌ عَنْ مَسْرُوقٍ عَنْ عَائِشَةَ وَذُكِرَ عِنْدَهَا مَا يَقْطَعُ الصَّلاَةَ الْكَلْبُ وَالْحِمَارُ وَالْمَرْأَةُ فَقَالَتْ

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


See similar narrations below:

Collected by Bukhārī, Aḥmad, Bayhaqī
bukhari:514ʿUmar b. Ḥafṣ from my father > al-Aʿmash > Ibrāhīm > al-Aswad > ʿĀʾishah > al-Aʿmash > Muslim > Masrūq

The things which annul prayer were mentioned before me (and those were): a dog, a donkey and a woman. I said, "You have compared us (women) to donkeys and dogs. By Allah! 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 disliked to sit and trouble the Prophet. So, I would slip away by the side of his feet."  

البخاري:٥١٤حَدَّثَنَا عُمَرُ بْنُ حَفْصٍ قَالَ حَدَّثَنَا أَبِي قَالَ حَدَّثَنَا الأَعْمَشُ قَالَ حَدَّثَنَا إِبْرَاهِيمُ عَنِ الأَسْوَدِ عَنْ عَائِشَةَ قَالَ الأَعْمَشُ وَحَدَّثَنِي مُسْلِمٌ عَنْ مَسْرُوقٍ

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

ahmad:25929Ibn Numayr > al-Aʿmash > Muslim > Masrūq > ʿĀʾishah > al-Aʿmash > Ibrāhīm > al-Aswad > ʿĀʾishah > Balaghahā > Nās > Ūn Yaqṭaʿ al-Ṣalāh al-Kalb And al-Ḥimār Wa-al-Marʾah

[Machine] "Some people say that prayer is interrupted by the presence of a dog, a donkey, or a woman. Aisha replied, 'You have wronged us by comparing us to dogs and donkeys. I have seen the Messenger of Allah ﷺ praying opposite the bed while I was in between him and the Qibla (direction of prayer). And sometimes I would have a need, so I would move aside from the side of the bed, disliking to face him.'"  

أحمد:٢٥٩٢٩حَدَّثَنَا ابْنُ نُمَيْرٍ حَدَّثَنَا الْأَعْمَشُ عَنْ مُسْلِمٍ عَنْ مَسْرُوقٍ عَنْ عَائِشَةَ وَحَدَّثَنَاهُ عَنِ الْأَعْمَشِ عَنْ إِبْرَاهِيمَ عَنْ الْأَسْوَدِ عَنْ عَائِشَةَ قَالَ بَلَغَهَا

أَنَّ نَاسًا يَقُولُونَ يَقْطَعُ الصَّلَاةَ الْكَلْبُ وَالْحِمَارُ وَالْمَرْأَةُ فَقَالَتْ عَائِشَةُ عَدَلْتُمُونَا بِالْكِلَابِ وَالْحَمِيرِ لَقَدْ رَأَيْتُ رَسُولَ اللهِ ﷺ يُصَلِّي مُقَابِلَ السَّرِيرِ وَأَنَا عَلَيْهِ بَيْنَهُ وَبَيْنَ الْقِبْلَةِ فَتَكُونُ لِي الْحَاجَةُ فَأَنْسَلُّ مِنْ قِبَلِ رِجْلِ السَّرِيرِ كَرَاهِيَةَ أَنْ أَسْتَقْبِلَهُ  

bayhaqi:3497Abū ʿAbdullāh al-Ḥāfiẓ > Abū ʿAbdullāh Muḥammad b. Yaʿqūb > al-Sarī b. Khuzaymah > ʿUmar b. Ḥafṣ b. Ghiyāth from my father > al-Aʿmash > Ibrāhīm > al-Aswad > ʿĀʾishah > Muslim > Masrūq > ʿĀʾishah

The things which annul prayer were mentioned before me (and those were): a dog, a donkey and a woman. I said, "You have compared us (women) to donkeys and dogs. By Allah! 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 disliked to sit and trouble the Prophet. So, I would slip away by the side of his feet." (Using translation from Bukhārī 514)   

البيهقي:٣٤٩٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا السَّرِيُّ بْنُ خُزَيْمَةَ ثنا عُمَرُ بْنُ حَفْصِ بْنِ غِيَاثٍ ثنا أَبِي ثنا الْأَعْمَشُ قَالَ حَدَّثَنِي إِبْرَاهِيمُ عَنِ الْأَسْوَدِ عَنْ عَائِشَةَ ؓ قَالَ وَحَدَّثَنِي مُسْلِمٌ عَنْ مَسْرُوقٍ عَنْ عَائِشَةَ ؓ

وَذَكَرَ عِنْدَهَا مَا يَقْطَعُ الصَّلَاةَ الْكَلْبُ وَالْحِمَارُ وَالْمَرْأَةُ فَقَالَتْ عَائِشَةُ ؓ قَدْ شَبَّهْتُمُونَا بِالْحَمِيرِ وَالْكِلَابِ وَاللهِ لَقَدْ رَأَيْتُ رَسُولَ اللهِ ﷺ يُصَلِّي وَأَنَا عَلَى السَّرِيرِ بَيْنَهُ وَبَيْنَ الْقِبْلَةِ مُضْطَجِعَةٌ فَتَبْدُو لِي الْحَاجَةُ فَأَكْرَهُ أَنْ أَجْلِسَ فَأُوذِيَ رَسُولَ اللهِ ﷺ فَأَنْسَلُّ مِنْ عِنْدِ رِجْلَيْهِ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ عُمَرَ بْنِ حَفْصٍ وَرَوَاهُ مُسْلِمٌ عَنْ عُمَرَ وَغَيْرِهِ