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. (Using translation from Abū Dāʾūd 3168)
عَنِ النَّبِيِّ ﷺ مَنْ صَلَّى عَلَى جَنَازَةٍ فَلَهُ قِيرَاطٌ وَمَنِ اتَّبَعَهَا حَتَّى يُفْرَغَ مِنْ شَأْنِهَا فَلَهُ قِيرَاطَانِ أَصْغَرُهُمَا أَوْ أَحَدُهُمَا مِثْلُ أُحُدٍ