Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever attends a funeral until the prayer is performed over it earns one qirat, and whoever stays until the burial is completed earns two qirats."Someone asked, "What are the two qirats?"He replied, "Like two enormous mountains."This is where the narration of Abu Tahir ends. The other two narrators added the following.Ibn Shihab said that Salim bin Abdullah bin Umar reported that Ibn Umar used to pray over the funeral and then leave. When the hadith of Abu Hurairah reached him, he said, "We have lost many qirats."

Muslim 2189

Sahih

و حدثني أبو الطاهر وحرملة بن يحيى وهارون بن سعيد الأيلي واللفظ لهارون وحرملة قال هارون حدثنا وقال الآخران أخبرنا ابن وهب أخبرني يونس عن ابن شهاب قال حدثني عبد الرحمن بن هرمز الأعرج أن

أبا هريرة قال

قال رسول الله ﷺ من شهد الجنازة حتى يصلى عليها فله قيراط ومن شهدها حتى تدفن فله قيراطان قيل وما القيراطان قال مثل الجبلين العظيمين انتهى حديث أبي الطاهر وزاد الآخران قال ابن شهاب قال سالم بن عبد الله بن عمر وكان ابن عمر يصلي عليها ثم ينصرف فلما بلغه حديث أبي هريرة قال لقد ضيعنا قراريط كثيرة

مسلم 2189صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Funerals
Chapter
Virtue of praying over the funeral and following it
Numbering
Darussalam 2189
Muslim 2189