Sunan Ibn Majah, Book 6, Hadith 99 (Ibn Majah 1531)

It was narrated from Anas that the Prophet (ﷺ) offered the funeral prayer at a grave after the burial.