Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever follows the funeral of a Muslim man, seeking reward from Allah, and prays over it and buries it, will receive two qirats. Whoever prays over it and then returns before it is buried will return with one qirat of reward."

Nasai 1998

Sahih

أخبرنا محمد بن بشار قال حدثنا محمد بن جعفر عن عوف عن محمد بن سيرين

عن أبي هريرة

أن رسول الله ﷺ قال من تبع جنازة رجل مسلم احتسابا فصلى عليها ودفنها فله قيراطان ومن صلى عليها ثم رجع قبل أن تدفن فإنه يرجع بقيراط من الأجر

النسائي 1998صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Funerals
Chapter
Reward for praying over a funeral
Numbering
Darussalam 1998
Nasai 1998