Bulugh al-Maram 558
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَعَنِ ابْنِ عَبَّاسٍ رَضِيَ اَللَّهُ عَنْهُمَا: سَمِعْتُ اَلنَّبِيَّ - صلى الله عليه وسلم -يَقُولُ: { مَا مِنْ رَجُلٍ مُسْلِمٍ يَمُوتُ, فَيَقُومُ عَلَى جَنَازَتِهِ أَرْبَعُونَ رَجُلًا, لَا يُشْرِكُونَ بِاَللَّهِ شَيْئًا, إِلَّا شَفَّعَهُمْ اَللَّهُ فِيهِ } رَوَاهُ مُسْلِمٌ 1 .
Ibn "Abbas (RAA) narrated, "I heard the Messenger of Allah (ﷺ) say, "If a Muslim man dies and a group of forty people, who do not associate any one with Allah, pray for him, Allah will accept their intercession for him (by way of their Du'A for him." Related by Muslim.
Full reference and source
Bulugh al-Maram 558 In-book : Book 3, Hadith 26 English translation : Book 3, Hadith 582
View source on Sunnah.com (opens in a new tab)