The Messenger of Allah ﷺ said, "Whoever comes to a funeral at the deceased's home and follows it until the prayer is offered over it earns one qirat of reward, and whoever continues with it earns two qirats, each like the mountain of Uhud."
حدثنا عفان حدثنا وهيب حدثنا عمرو بن يحيى عن محمد بن يوسف بن عبد الله بن سلام
قال رسول الله ﷺ من جاء جنازة في أهلها فتبعها حتى يصلي عليها فله قيراط ومن مضى معها فله قيراطان مثل أحد