It is narrated from Ibn A'idh that: "The Messenger of Allah (peace and blessings be upon him) came for the funeral of a man of the Ansar. When (the bier) was placed down, Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) said: 'O Messenger of Allah! Do not lead his funeral prayer, for he is a wicked man.' The Messenger of Allah (peace and blessings be upon him) turned (to the people) and asked: 'Has any of you seen him doing any deed of Islam?' A man said: Yes, O Messenger of Allah! He kept guard with us for one night in the path of Allah. So he (peace and blessings be upon him) led his funeral prayer and threw earth on (his grave), then said: 'Your companions think that you are among the people of Hell, but I bear witness that you are among the people of Paradise.' And he said: 'O Umar! You will not be called to account about the deeds of people; rather, you people will be asked about the prayer.'"
Ahmad bin Mani' and Abu Ya'la al-Mawsili recorded this hadith.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لجهالة أبي عبد الرحمن الأزدي، وهو مرسل؛ ابن عائذ تابعي
Hadith Takhrij«إسناد أحمد بن منيع: الحسن بن سوار عن الليث عن معاوية بن صالح عن أبي عبد الرحمن الأزدي عن ابن عائذ؛ قال محقق المطالب (887): أبو عبد الرحمن الأزدي لم أعرفه، وعبد الرحمن بن عائذ لم يدرك النبي ﷺ»