Hadith on Janazah: When forty Muslims pray the funeral prayer

Abdullah ibn Abbas reported: I heard the Messenger of Allah, peace and blessings be upon him, say, “A Muslim man does not die while forty men, who do not associate partners with Allah, pray over him but that Allah will accept their intercession for him.

Source: Ṣaḥīḥ Muslim 948

Grade: Sahih (authentic) according to Muslim

عَنْ عَبْدِ اللَّهِ بْنِ عَبَّاسٍ قَالَ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ مَا مِنْ رَجُلٍ مُسْلِمٍ يَمُوتُ فَيَقُومُ عَلَى جَنَازَتِهِ أَرْبَعُونَ رَجُلًا لَا يُشْرِكُونَ بِاللَّهِ شَيْئًا إِلَّا شَفَّعَهُمْ اللَّهُ فِيهِ

948 صحيح مسلم كتاب الجنائز باب من صلى عليه أربعون شفعوا فيه