Sunan Abi Dawud, Book 41, Hadith 5026 (USC-MSA)

Narrated Umm Salamah, Ummul Mu'minin: Some relative of Umm Salamah said: The bed of the Prophet was set as a man is laid in his grave; the mosque was towards his head.

حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا حَمَّادٌ، عَنْ خَالِدٍ الْحَذَّاءِ، عَنْ أَبِي قِلاَبَةَ، عَنْ بَعْضِ، آلِ أُمِّ سَلَمَةَ قَالَ كَانَ فِرَاشُ النَّبِيِّ صلى الله عليه وسلم نَحْوًا مِمَّا يُوضَعُ الإِنْسَانُ فِي قَبْرِهِ وَكَانَ الْمَسْجِدُ عِنْدَ رَأْسِهِ ‏.‏

sunnah.com