Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:6998Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Saʿīd b. ʿAmr > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Hārūn b. Sulaymān > ʿAbd al-Raḥman b. Mahdī > Ḥarb b. Shaddād > Yaḥyá b. Abū Kathīr > Anas b. Sīrīn

[Machine] Anas ibn Malik attended a funeral that had already been prayed upon, and the deceased person was laid on a bed. So, he prayed before the bed.  

البيهقي:٦٩٩٨أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو سَعِيدِ بْنُ عَمْرٍو قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا هَارُونُ بْنُ سُلَيْمَانَ ثنا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ عَنْ حَرْبِ بْنِ شَدَّادٍ عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ أَنَّ أَنَسَ بْنَ سِيرِينَ حَدَّثَهُ

أَنَّ أَنَسَ بْنَ مَالِكٍ أَتَى جِنَازَةً وَقَدْ صُلِّيَ عَلَيْهَا وَالسَّرِيرُ مَوْضُوعٌ فَصَلَّى قِبَلَ السَّرِيرِ