Full Sharh — Mishkat al-Masabih 1631
وَعَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ قَالَ: سَمِعْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «إِذَا مَاتَ أَحَدُكُمْ فَلَا تَحْبِسُوهُ وَأَسْرِعُوا بِهِ إِلَى قَبْرِهِ وَلْيُقْرَأْ عِنْدَ رَأْسِهِ فَاتِحَةُ الْبَقَرَةِ وَعِنْدَ رِجْلَيْهِ بِخَاتِمَةِ الْبَقَرَةِ» . رَوَاهُ الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان. وَقَالَ: وَالصَّحِيح أَنه مَوْقُوف عَلَيْهِ
English Translation
‘Abdallah b. ‘Umar said he heard the Prophet say, “When one of you dies do not keep him long, but take him quickly to his grave, and have the opening verses of sura al-Baqara recited at his head and the concluding verses of the same sura at his feet.” Baihaqi transmitted it in Shu'ab al-iman, saying the correct view is that it does not go farther back than him.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Funerals
Hadith Number
1631