كتاب الصلاة
4  
The Book of Prayers
(51)
Chapter: Lying In Front Of One Who Is Praying
(51)
باب الاِعْتِرَاضِ بَيْنَ يَدَىِ الْمُصَلِّي ‏
Sahih Muslim 512 f

'A'isha reported:

I was sleeping in front of the Mcsseinger ef Allah (ﷺ) with my legs between him and the Qibla. When he prostrated himself he pinched me and I drew up my legs, and when be stood up, I stretched them out. She said: At that time there were no lamps in the houses.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ أَبِي النَّضْرِ، عَنْ أَبِي سَلَمَةَ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ عَائِشَةَ، قَالَتْ كُنْتُ أَنَامُ بَيْنَ يَدَىْ رَسُولِ اللَّهِ صلى الله عليه وسلم وَرِجْلاَىَ فِي قِبْلَتِهِ فَإِذَا سَجَدَ غَمَزَنِي فَقَبَضْتُ رِجْلَىَّ وَإِذَا قَامَ بَسَطْتُهُمَا - قَالَتْ - وَالْبُيُوتُ يَوْمَئِذٍ لَيْسَ فِيهَا مَصَابِيحُ ‏.‏
Reference : Sahih Muslim 512f
In-book reference : Book 4, Hadith 307
USC-MSA web (English) reference : Book 4, Hadith 1040
  (deprecated numbering scheme)