عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَقُولُ: ((مَا مِنْ مُسْلِمٍ يَمُوتُ فَيَقُومُ عَلَى جَنَازَتِهِ أَرْبَعُونَ رَجُلًا لَا يُشْرِكُونَ بِاللَّهِ شَيْئًا إِلَّا شَفَّعَهُمْ اللَّهُ فِيهِ))
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: When a Muslim passes away and forty men who do not associate anything with Allah stand for his funeral, Allah accepts their intercession on his behalf.