The Messenger of Allah ﷺ would pray while I lay stretched out in front of him like a body laid out for a funeral, and when he wanted to perform the witr prayer, he would nudge me with his foot.
أخبرنا محمد بن عبد الله بن الحكم عن شعيب عن الليث قال أنبأنا ابن الهاد عن عبد الرحمن بن القاسم عن القاسم
إن كان رسول الله ﷺ ليصلي وإني لمعترضة بين يديه اعتراض الجنازة حتى إذا أراد أن يوتر مسني برجله
[Its isnad is sahih] Ahmad reported it: 6/259, from the hadith of Layth bin Saad, through the same route. Muslim also reported it, no. 1/744, from the hadith of Qasim bin Muhammad, through the same route. See the hadith that follows.