The Prophet (ﷺ) prayed while `Aisha was lying between him and his Qibla on the bed on which they used to sleep.
Sahih al-Bukhari Book 8, Hadith 36