It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, the first reward given to the believing servant after his death is that all those who followed his funeral (that is, walked behind his bier) are forgiven."
Imam Abd bin Humayd recorded it; its chain contains Marwan bin Salim, who is matruk (abandoned), so this narration is weak.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الجنائز / 808
Hadith Gradingمحدثین:إسناده ضعيف جدًا
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده ضعيف جدًا. » «أخرجه عبد بن حميد فى "المنتخب من مسنده"، 623، وأورده ابن حجر فى "المطالب العالية"، 808، وأخرجه البزار فى «مسنده» برقم: 4796، 5161، 5162»