عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ: ((مَنْ تَبِعَ جَنَازَةً فَحَمَلَ مِنْ عُلُوِّهَا، وَحَثَا فِي قَبْرِهَا، وَقَعَدْ حَتَّى يُؤْذَنَ لَهُ أَوْ بِقِيرَاطَيْنِ مِنَ الْأَجْرِ، كُلُّ قِيرَاطٍ مِثْلُ أُحُدٍ))
It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: Whoever accompanies the bier of the deceased from the time it is lifted, and remains with it, and also throws earth into the grave, and stays until he is permitted to return after the burial, then he returns with the reward of two qirats, and each qirat is equal to the mountain of Uhud.