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".
He said that the Prophet’s grave was sprinkled and that the one who sprinkled the water over his grave from a water-skin was Bilal b. Rabah. He began where the head was and sprinkled it to his feet.
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.