"I used to be asleep while my legs would be in the front of the Messenger of Allah (ﷺ) while he was praying during the night. When he wanted to prostrate, he would prod my feet, so I would pull them up, and he would prostrate.
Sunan Abi Dawud Book 2, Hadith 323