Sunan an-Nasa'i, Hadith 1940 ⓘ
It was narrated that Al-Musayyab bin Rafi' said: "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."'
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا عَبْثَرٌ، عَنْ بُرْدٍ، أَخِي يَزِيدَ بْنِ أَبِي زِيَادٍ عَنِ الْمُسَيَّبِ بْنِ رَافِعٍ، قَالَ سَمِعْتُ الْبَرَاءَ بْنَ عَازِبٍ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ تَبِعَ جَنَازَةً حَتَّى يُصَلَّى عَلَيْهَا كَانَ لَهُ مِنَ الأَجْرِ قِيرَاطٌ وَمَنْ مَشَى مَعَ الْجَنَازَةِ حَتَّى تُدْفَنَ كَانَ لَهُ مِنَ الأَجْرِ قِيرَاطَانِ وَالْقِيرَاطُ مِثْلُ أُحُدٍ " .
also referenced under: Book 21, Hadith 124 (In-Book) & Volume 3, Book 21, Hadith 1942 (DarusSalam)