(45) باب فَضْلِ الصَّلاَةِ عَلَى الْجَنَائِزِ وَتَشْيِيعِهَا
Narrated Abu Hurairah:
If anyone attends the funeral and prays over (the dead), he will get the reward of one qirat, and if anyone attends the funeral until the completion (of the burial), he will get the reward of two qirats, the smaller of them being equivalent of Uhud, or one of them being equivalent to Uhud.
Reference: Sunan Abi Dawud 3168
In-book reference: Book 21, Hadith 80
English translation: Book 20, Hadith 3162