Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates: "Whoever follows its funeral until it is buried," and in another hadith: "until it is finished with (whoever stays with it that long will have two qirats)."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6747