Forty people praying over the dead

When forty believers pray over a Muslim, Allah accepts their intercession.

Narrated by Abdullah ibn Abbas

No Muslim man dies and forty men who do not associate anything with Allah stand over his funeral prayer, except that Allah accepts their intercession for him.

Sahih Muslim 948

What this hadith teaches

A reason to attend the Janazah: your prayer may be one of the forty.

Reference and grade

Grade
Sahih (in Sahih Muslim)
Narrator
Abdullah ibn Abbas

The hadith in Arabic نص الحديث

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

Arabic text of Sahih Muslim 948, as given on sunnah.com.