Guidance from The Prophet (saws)
Hadrat Abu Hurairah (r.a.) reported: The Messenger of Allah (saws) said, "Whoever follows the funeral procession and offers the funeral prayer for it, will get a reward equal to one Qirat, and whoever attends it till burial, will get a reward equal to two Qirat.'' It was asked, "What are two Qirat?'' He (PBUH) replied, "Equal to two huge mountains.''
Related by Bukhari and Muslim.
The Messenger of Allah (saws) encouraged the believers to attend the burial of their believing brethren stating that one who follows the funeral and offers the prayer would get a reward as huge as a mountain….and if one follows the burial, offers the funeral prayer, and waits till the deceased is buried in the grave one would be entitled to earn a reward of two huge mountains.