كتاب الجنائز
5  
Funerals
(5a)
Chapter: Walking at a Funeral and Prayer over the Dead - Section 1
(5)
المشي بالجنازة والصلاة عليها - الفصل الأول
Mishkat al-Masabih 1651
Abu Huraira reported God’s messenger as saying, “If anyone attends the funeral of a Muslim out of faith and seeking a reward from God, and stays till prayer is offered and the burial is complete, he will return with a reward of two qirats, each qirat being equivalent to Uhud (The qirat is a small weight, a twentieth, or twenty-fourth of a dinar. Here it is used somewhat figuratively. The statement that it is equivalent to the hill Uhud is a way of expressing that the reward will be very great); and if anyone prays over the dead and returns before the burial, he will come back with one qirat.” (Bukharl and Muslim.)
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنِ اتَّبَعَ جَنَازَةَ مُسْلِمٍ إِيمَانًا وَاحْتِسَابًا وَكَانَ مَعَهُ حَتَّى يُصَلَّى عَلَيْهَا وَيُفْرَغَ مِنْ دَفْنِهَا فَإِنَّهُ يَرْجِعُ مِنَ الْأَجْرِ بِقِيرَاطَيْنِ كُلُّ قِيرَاطٍ مِثْلُ أُحُدٍ وَمَنْ صَلَّى عَلَيْهَا ثُمَّ رَجَعَ قَبْلَ أَنْ تُدْفَنَ فَإِنَّهُ يَرْجِعُ بقيراط»
  مُتَّفَقٌ عَلَيْهِ   (الألباني) حكم   :
Reference : Mishkat al-Masabih 1651
In-book reference : Book 5, Hadith 126