Ibn A'idh relates that the Messenger of Allah (peace and blessings be upon him) went to the funeral of a man of the Ansar. When the bier was set down, Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) said: "O Messenger of Allah, do not offer the funeral prayer over him, for he was a wicked man." The Messenger of Allah (peace and blessings be upon him) turned to the people and said: "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 Almighty." So he (peace and blessings be upon him) offered the funeral prayer over him, threw earth upon him, and said: "Your companions think that you are among the people of Hell, while I testify that you are among the people of Paradise." Then he (peace and blessings be upon him) said: "O Umar, you will not be asked about people's deeds; rather, you people will be asked about the prayer."
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الجنائز / 887
Hadith Gradingمحدثین:إسناده ضعيف، مرسل
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده ضعيف؛ فهو مرسل. » «أورده ابن حجر فى "المطالب العالية"، 213، 887»