Abu Aswad reported,

Abu Aswad reported, "I arrived in Medina at a time when an illness had spread there, so I sat with Umar bin Khattab. A funeral procession passed by, and the deceased was praised with good words.Umar said, "It is guaranteed."Then another passed by, and the deceased was praised with good words.Umar said, "It is guaranteed."Then a third passed by, and the deceased was praised with good words.Umar said, "It is guaranteed."Then a fourth passed by, and the deceased was spoken of with ill words.Umar said, "It is guaranteed."Abu Aswad said, "I asked, 'What is guaranteed, Commander of the Believers?'"Umar replied, "I said just as the Prophet ﷺ said, 'Any Muslim for whom four people testify with good, Allah will admit him into Paradise.'"We asked, "And three?"He said, "And three."We asked, "And two?"He said, "And two."Then we did not ask him about one.

Azami 3641

Sahih

عن أبي الأسود قال

قدمت المدينة- وقد وقع بها مرض- فجلست إلى عمر بن الخطاب، فمرت بهم جنازة، فأثني على صاحبها خيرا فقال عمر: وجبت، ثم مر بأخرى فأثني على صاحبها خيرا، فقال عمر: وجبت، ثم مر بأخرى، فأثنى على صاحبها خيرا، فقال عمر: وجبت، ثم مر بالثالثة فأنني على صاحبها شرا، فقال وجبت. فقال أبو الأسود: فقلت: وما وجبت يا أمير المؤمنين؟ قال: قلت كما قال النبي ﷺ: أيما مسلم شهد له أربعة بخير أدخله الله الجنة فقلنا: وثلاثة؟ قال: وثلاثة. فقلنا: واثنان؟ قال: واثنان. ثم لم نسأله عن الواحد.

الأعظمي 3641صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Deceased, carrying the funeral bier, and standing for it
Section
Praise of the people for the deceased
Numbering
Jami al-Kamil 3641 (2nd edition)
Azami 3641