Al-Ilmam bi-Ahadith al-Ahkam 456
وَعَن ابْن عمر رَضِيَ اللَّهُ عَنْهما أَن النَّبِي ﷺ كَانَ إِذا وضع الْمَيِّت، فِي قَبره قَالَ: " بِسم الله، وَعَلَى سنة رَسُول الله ". رَوَاهُ أَبُو دَاوُد وَقَالَ الْبَيْهَقِيّ: والْحَدِيث يتفرد بِهِ همام بن يَحْيَى بِهَذَا الْإِسْنَاد ﷺ وَهُوَ ثِقَة، إِلَّا أَن شُعْبَة وهشاماً الدستوَائي روياه عَن قَتَادَة مَوْقُوفا عَلَى ابْن عمر. قلت: هما أحفظ من همام، والشيخان قد احتجا بِهِ.
And from Ibn ʿUmar, may Allah be pleased with them both, that when the dead person was placed in his grave, the Prophet ﷺ would say: "In the name of Allah, and upon the Sunnah of the Messenger of Allah." Abu Dawud narrated it. Al-Bayhaqi said: Hammam ibn Yahya alone narrated the hadith with this chain, and he is reliable; however, Shuʿbah and Hisham ad-Dastuwaʾi narrated it from Qatadah as a statement of Ibn ʿUmar. I say: They are better at memorising than Hammam, though the two Shaykhs used him as evidence.