It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever offers the funeral prayer will have one qirat, and whoever stays waiting until the burial is finished will have two qirats." They said: What are the two qirats? He (peace and blessings be upon him) said: "They are like two great mountains."
Abd al-A'la narrates: "until it is finished with"; Ma'mar says: "until it is placed in the lahd (niche of the grave)."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6746