Sahih al-Bukhari 512
Sahih al-Bukhari · Book 8: Prayers (Salat) · To offer As-Salat (the prayer) behind a sleeping person
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.