It was narrated from Anas that the Prophet (ﷺ) offered the funeral prayer at a grave after the burial
Hadith No. 1531
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih
Shuaib Al Arnaut:
Sahih
Zubair Ali Zai:
Sahih Muslim