قَالَ أَمِيرُ الْمُؤْمِنِينَ ع- مَنْ تَبِعَ جَنَازَةً كَتَبَ اللَّهُ لَهُ أَرْبَعَةَ قَرَارِيطَ قِيرَاطٍ لِاتِّبَاعِهِ إِيَّاهَا وَ قِيرَاطٍ لِلصَّلَاةِ عَلَيْهَا وَ قِيرَاطٍ لِلِانْتِظَارِ حَتَّى يَفْرُغَ مِنْ دَفْنِهَا وَ قِيرَاطٍ لِلتَّعْزِيَةِ.
English translationBab Ul Qaim Publications
Hadith.451 - The Commander of the Faithful Imam Ali ibn Abi Talib (as) said: "Whoever follows a funeral procession, Allah (swt) will record four qirats for them : one qirat for following the procession, one qirat for offering the funeral prayer, one qirat for waiting until the burial is completed, and one qirat for offering condolences."
Translation: Bab Ul Qaim Publications·Thaqalayn link·The Arabic above is the original.