Umm al-Mu'mineen Sayyida Aisha (may Allah be pleased with her) narrates: She says, I used to sleep in front of the Messenger of Allah (ﷺ) and my legs would be in the direction of the qiblah. When he (ﷺ) would go into prostration, he would press me and I would draw my legs back. When he (ﷺ) would stand up from prostration, I would stretch my legs out again. Sayyida Aisha (may Allah be pleased with her) says: In those days, there were no lamps in the houses.
Hadith Referenceالسنن المأثورة / باب ما جاء في الصلاة على الراحلة / 123
Hadith Takhrijصحیح بخاری، الصلاة، باب الصلاة علی الفراش، رقم: 382، صحیح مسلم، الصلاة، باب الاعتراض بين يدی المصلی، رقم: 512