(17) باب فَضْلِ الصَّلاَةِ عَلَى الْجَنَازَةِ وَاتِّبَاعِهَا
Thauban, the freed slave of the Messenger of Allah (ﷺ) reported Allah's Messenger (ﷺ) as saying:
He who offered prayer for the dead, for him is the reward of one qirat, and he who attended its burial, he would have two qirats as his reward. And qirat is equivalent to Uhud.
Reference: Sahih Muslim 946 a
In-book reference: Book 11, Hadith 74
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 2069