Mishkat al-Masabih 1717
وَعَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ قَالَ: سَمِعْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «إِذَا مَاتَ أَحَدُكُمْ فَلَا تَحْبِسُوهُ وَأَسْرِعُوا بِهِ إِلَى قَبْرِهِ وَلْيُقْرَأْ عِنْدَ رَأْسِهِ فَاتِحَةُ الْبَقَرَةِ وَعِنْدَ رِجْلَيْهِ بِخَاتِمَةِ الْبَقَرَةِ» . رَوَاهُ الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان. وَقَالَ: وَالصَّحِيح أَنه مَوْقُوف عَلَيْهِ
From ʿAbdullah ibn ʿUmar, who said: I heard the Prophet ﷺ say: "When one of you dies, do not hold him back, but hasten with him to his grave, and let the opening of al-Baqarah be recited at his head and the end of al-Baqarah at his feet." Reported by al-Bayhaqi in Shuʿab al-Iman, and he said: "What is correct is that it stops at him (Ibn ʿUmar)."