Allah Apostle prayed while I was lying like a dead body on his family bed between him and his Qibla.

Sahih al-Bukhari Book 8, Hadith 35