The Mother of the Believers (wife of the Messenger), Sayyidah Aishah (may Allah be pleased with her), relates: I would be sleeping in front of the Messenger of Allah (peace and blessings be upon him) with my legs towards his (peace and blessings be upon him) qiblah. When he (peace and blessings be upon him) prostrated, he would nudge me and I would draw in my legs, and when he (peace and blessings be upon him) stood up I would stretch them out again. She said: In those days there were no lamps in the houses.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3495