Bismillah.
Narrated Nafi:
Ibn Umar was told that Abu Huraira said, "Whoever accompanies the funeral procession will have a reward equal to one Qirat." Ibn 'Umar said, "Abu Huraira talks of a too enormous reward." Aisha attested Abu Huraira's narration and said, "I heard Allah's Apostle saying like that." Ibn Umar said, "We have lost numerous Qirats."
Narrated Abu Huraira:
that Allah's Apostle (p.b.u.h) said, "Whoever attends the funeral procession till he offers the funeral prayer for it, will get a reward equal to one Qirat, and whoever accompanies it till burial, will get a reward equal to two Qirats." It was asked, "What are two Qirats?" He replied, "Like two huge mountains."
The Sunnah indicates that the one who attends the funeral until he offers the prayer will have one qiraat, and whoever attends until the deceased is buried will have two qiraats.
A qiraat is a large amount of reward, which the Prophet (peace and blessings of Allaah be upon him) likened to the mountain of Uhud.
There are five categories of attending funerals [IslamQA]:
- Attending from the time the deceased is brought out of his house, until the funeral prayer is offered for him and the burial is finished. This is the most complete category, for which there are two huge qiraats of reward.
- Attending from the time the deceased is brought out of his house, until the funeral prayer is offered for him. This brings one qiraat of reward.
- Offering the funeral prayer for him, even if one did not come with the deceased from the time he was brought out of his house. This brings one qiraat according to the view favoured by al-Haafiz Ibn Hajar, but it is less than the reward of one who attended from time the deceased was brought out of his house, until the funeral prayer is offered for him.
- Attending the burial only, without offering the funeral prayer. The apparent meaning of the hadeeth is that there is no qiraat in this case, but a person will be rewarded in accordance with his actions.
- Following the funeral procession for a while, then leaving, without attending the prayer or the burial. There is the hope that a person will be rewarded in accordance with his intention in this case.
Details here.
Wassalam.