NASAI-KUBRA 2078:
from al-Barāʾ b. ʿĀzib —
"I heard Al-Bara' bin 'Azib say: The Messenger of Allah said: 'whoever follows a Janazah until the prayer is offered, he will have one Qirat of reward and whoever walks with the funeral until (the body) is buried will have two Qirats of reward, and a Qirat is like Uhud."' (Using translation from Nasāʾī 1940)
الكبرى للنسائي ٢٠٧٨:
عن البراء بن عازب —
قَالَ رَسُولُ اللهِ ﷺ «مَنْ تَبِعَ جِنَازَةً حَتَّى يُصَلَّى عَلَيْهَا كَانَ لَهُ مِنَ الْأَجْرِ قِيرَاطٌ وَمَنْ مَشَى مَعَ الْجِنَازَةِ حَتَّى تُدْفَنَ كَانَ لَهُ مِنَ الْأَجْرِ قِيرَاطَانِ وَالْقِيرَاطُ مِثْلُ أُحُدٍ»
hadithunlocked.com