Sayyidina Ibn Umar (RA) narrated that when the corpse was put in the grave----in the version of Abu Khalid the words are slightly different with same meaning----the Prophet (SAW) said once:
In the name of Allah, at His command and on the Shariah of Allah’s Messenger:
And (Abu Khalid’s version) said once:
In the Shariah of Allah, at His command, according to the sunnah of Allah’s Messenger (SAW)
[Abu Dawud 3213, Ibn e Majah 1550]