Sayyiduna Abu Huraira (may Allah be pleased with him) reports: The Messenger of Allah (peace and blessings be upon him) said: "Whoever accompanies a funeral and remains until it is buried, for him there will be the reward of two qirats." It was asked: O Messenger of Allah! How much is a qirat? He (peace and blessings be upon him) said: "Like the mountain of Uhud."
Related hadith on this topic