The Prophet ﷺ performed the funeral prayer at a grave after the deceased had already been buried.
حدثنا العباس بن عبد العظيم العنبري ومحمد بن يحيى قالا حدثنا أحمد بن حنبل حدثنا غندر عن شعبة عن حبيب بن الشهيد عن ثابت
أن النبي ﷺ صلى على قبر بعد ما قبر
No references are available.
Muslim reported it in "Funerals", the previous chapter, hadith no. 955. See the previous hadith, narrated from Ghundar through him.