Hadithcore
Sunan Abi Dawud, 3211
sahih· Al-Albani

Abu Ishaq said:

Al-Harith left his will that Abdullah ibn Yazid should offer his funeral prayer; so he prayed over him. He then put him in the grave from the side of his legs and said: This is a Sunnah (model practice of the Prophet).

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

References2 variants
In-Book Reference
Book 21, Hadith 123
English Reference
Book 20, Hadith 3205