It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that once the Prophet (peace and blessings be upon him) offered the funeral prayer at the grave of a person after he had been buried.
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 1962