Language:
كتاب الصلاة
8  
Prayers (Salat)
(99)
Chapter: To offer As-Salat (the prayer) facing a bed
(99)
باب الصَّلاَةِ إِلَى السَّرِيرِ
Sahih al-Bukhari 508

Narrated `Aisha:

Do you make us (women) equal to dogs and donkeys? While I used to lie in my bed, the Prophet (ﷺ) would come and pray facing the middle of the bed. I used to consider it not good to stand in front of him in his prayers. So I used to slip away slowly and quietly from the foot of the bed till I got out of my guilt.

حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، قَالَ حَدَّثَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ إِبْرَاهِيمَ، عَنِ الأَسْوَدِ، عَنْ عَائِشَةَ، قَالَتْ أَعَدَلْتُمُونَا بِالْكَلْبِ وَالْحِمَارِ لَقَدْ رَأَيْتُنِي مُضْطَجِعَةً عَلَى السَّرِيرِ ، فَيَجِيءُ النَّبِيُّ صلى الله عليه وسلم فَيَتَوَسَّطُ السَّرِيرَ فَيُصَلِّي، فَأَكْرَهُ أَنْ أُسَنِّحَهُ فَأَنْسَلُّ مِنْ قِبَلِ رِجْلَىِ السَّرِيرِ حَتَّى أَنْسَلَّ مِنْ لِحَافِي‏.‏
Reference : Sahih al-Bukhari 508
In-book reference : Book 8, Hadith 155
USC-MSA web (English) reference : Vol. 1, Book 9, Hadith 486
  (deprecated numbering scheme)