‘A’isha said, “I was sleeping in front of God’s Messenger with my legs between him and the qibla. When he prostrated himself he pinched me and I drew up my legs, and when he stood up I stretched them out.” She added, “At that time there were no lamps in the houses.”
(Bukhari and Muslim.)