Abu Aswad reported,

I came to Medina and arrived at a time when an illness had struck the city, and people were dying in great numbers. I sat with Umar bin Khattab رضي الله عنه when a funeral procession passed by, and the deceased was praised for his goodness.Umar رضي الله عنه said, "It is confirmed."Then another passed by, and the deceased was praised for his goodness.Umar رضي الله عنه said, "It is confirmed."Then a third passed by, and the deceased was spoken of poorly.Umar رضي الله عنه said, "It is confirmed."Abu Aswad asked, "What is confirmed, Commander of the Believers?"Umar replied, "I said as the Messenger of Allah ﷺ said, 'Any Muslim for whom four people testify with good, Allah will admit him to 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.

Ahmad 139

Sahih

حدثنا يونس بن محمد حدثنا داود يعني ابن أبي الفرات عن عبد الله بن بريدة

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

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

أحمد 139صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Umar bin Khattab
Numbering
Darussalam 139
Ahmad 139