The Prophet (ﷺ) used to pray while I was sleeping across in his bed in front of him…

Sahih al-Bukhari Book 8 Hadith 159

Sahih al-Bukhari #512

Prayers (Salat) 8:159

Narrated `Aisha:

The Prophet (ﷺ) used to pray while I was sleeping across in his bed in front of him. Whenever he wanted to pray witr, he would wake me up and I would pray witr.

Chapter: To offer As-Salat (the prayer) behind a sleeping person

Grade: Sahih