Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) offered the funeral prayer over a grave after the burial.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 7007