AHMAD 11218:
from Abū Saʿīd al-Khudrī —
[Machine] On the authority of the Messenger of Allah ﷺ, he said, "Whoever attends a funeral procession and walks with it from the family until the prayer is performed upon it, he will receive one qirat (reward). And whoever waits until it is buried or until it is completed, he will receive two qirat, comparable to the size of Uhud."
أحمد ١١٢١٨:
عن ابو سعيد الخدري —
عَنْ رَسُولِ اللهِ ﷺ قَالَ مَنْ جَاءَ إِلَى جَنَازَةٍ فَمَشَى مَعَهَا مِنْ أَهْلِهَا حَتَّى يُصَلَّى عَلَيْهَا فَلَهُ قِيرَاطٌ وَمَنْ انْتَظَرَ حَتَّى تُدْفَنَ أَوْ يُفْرَغَ مِنْهَا فَلَهُ قِيرَاطَانِ مِثْلُ أُحُدٍ
hadithunlocked.com