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