Mishkat al-Masabih
Mishkat al-Masabih 1651
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنِ اتَّبَعَ جَنَازَةَ مُسْلِمٍ إِيمَانًا وَاحْتِسَابًا وَكَانَ مَعَهُ حَتَّى يُصَلَّى عَلَيْهَا وَيُفْرَغَ مِنْ دَفْنِهَا فَإِنَّهُ يَرْجِعُ مِنَ الْأَجْرِ بِقِيرَاطَيْنِ كُلُّ قِيرَاطٍ مِثْلُ أُحُدٍ وَمَنْ صَلَّى عَلَيْهَا ثُمَّ رَجَعَ قَبْلَ أَنْ تُدْفَنَ فَإِنَّهُ يَرْجِعُ بقيراط»
Abu Hurayra reported that the Messenger of Allah, peace and blessings be upon him, said, ‘Whoever follows the funeral of a Muslim in faith and seeking reward, and remains with it until the funeral prayer is performed and the burial is completed, returns with a reward of two qirats, each qirat like Uhud. Whoever prays over it and then returns before it is buried returns with one qirat.’