Burying the Dead - Section 3 Mishkat al-Masabih 1720

Arabic hadith text
وَعَنْ أَبِي هُرَيْرَةَ: أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَّى عَلَى جَنَازَةٍ ثُمَّ أَتَى الْقَبْر فَحَثَا عَلَيْهِ مِنْ قِبَلِ رَأْسِهِ ثَلَاثًا. رَوَاهُ ابْنُ مَاجَه
Translation

Abu Huraira said that God’s messenger prayed over a bier, then went to the grave and threw three handfuls of earth towards the head of the dead man. Ibn Majah transmitted it.