Ibn Abbas (may Allah be pleased with them both) said: He (peace and blessings be upon him) offered the funeral prayer over a man one night after he had been buried. He (peace and blessings be upon him) and his (peace and blessings be upon him) Companions stood up, and he had been asking about him; he said: "Who is this?" It was said: He was buried just yesterday. So he (peace and blessings be upon him) offered the funeral prayer over him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 7000