[Machine] The Messenger of Allah ﷺ said: "Whoever follows the funeral procession of a Muslim with the intention of seeking reward and stays with it until the funeral prayer is offered and the burial is completed, he will return with two great rewards for every Qirat. And whoever offers the funeral prayer and then leaves before the burial, he will return with one great reward." Ishaq said: "Out of faith and seeking reward." And he said: "And if he leaves before it is placed in the grave, he will return with a reward."
أَنَّ رَسُولَ اللهِ ﷺ قَالَ مَنْ تَبِعَ جِنَازَةَ مُسْلِمٍ احْتِسَابًا وَكَانَ مَعَهَا حَتَّى يُصَلَّى عَلَيْهَا وَيُفْرَغَ مِنْ دَفْنِهَا فَإِنَّهُ يَرْجِعُ مِنَ الْأَجْرِ بِقِيرَاطَيْنِ كُلُّ قِيرَاطٍ مِثْلُ أُحُدٍ وَمَنْ صَلَّى عَلَيْهَا وَرَجَعَ قَبْلَ أَنْ تُدْفَنَ فَإِنَّهُ يَرْجِعُ بِقِيرَاطٍ قَالَ إِسْحَاقُ إِيمَانًا وَاحْتِسَابًا وَقَالَ فَإِنْ رَجَعَ قَبْلَ أَنْ تُوضَعَ فِي الْقَبْرِ فَإِنَّهُ يَرْجِعُ بِقِيرَاطٍ