Ibn ‘Umar told that when the dead was placed in the grave the Prophet said, “In the name of God, by God’s grace, and following the religion of God’s messenger.” A version has “And following the sunna of God’s messenger.”
Ahmad, Tirmidhi and Ibn Majah transmitted it, and Abu Dawud transmitted the second version.
He told that the Prophet entered a grave during the night, and when a lamp was lit for him he faced the qibla and said, “God have mercy on you if you were devoted to supplication with tears (The Arabic is awwah which cannot easily be translated by one word. It is variously explained as meaning one much given to sighing through fear of God, one much given to supplication from love of God, one much given to weeping from fefir, or one much given to prayer asking for God’s mercy. Cf. Mirqat, ii, 376) and to the recitation of the Qur’an.”
Tirmidhi transmitted it, but in Sharh as- sunna its isnad is said to be weak.
Ja'far b. Muhammad told in mursal form on his father’s authority that the Prophet cast three handfuls of earth on the dead with both hands, that he sprinkled water on his son Ibrahim’s grave, and that he put small pebbles on it.
It is transmitted in Sharh as-sunna, and Shafi’i transmitted from “he sprinkled".