أَخْبَرَنِي زِيَادُ بْنُ أَيُّوبَ، قَالَ حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنَا عَبْدُ الْعَزِيزِ، عَنْ أَنَسٍ، قَالَ مُرَّ بِجَنَازَةٍ فَأُثْنِيَ عَلَيْهَا خَيْرًا فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ وَجَبَتْ ‏"‏ ‏.‏ وَمُرَّ بِجَنَازَةٍ أُخْرَى فَأُثْنِيَ عَلَيْهَا شَرًّا فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ وَجَبَتْ ‏"‏ ‏.‏ فَقَالَ عُمَرُ فِدَاكَ أَبِي وَأُمِّي مُرَّ بِجَنَازَةِ فَأُثْنِيَ عَلَيْهَا خَيْرًا فَقُلْتَ ‏"‏ وَجَبَتْ ‏"‏ ‏.‏ وَمُرَّ بِجَنَازَةٍ فَأُثْنِيَ عَلَيْهَا شَرًّا فَقُلْتَ ‏"‏ وَجَبَتْ ‏"‏ ‏.‏ فَقَالَ ‏"‏ مَنْ أَثْنَيْتُمْ عَلَيْهِ خَيْرًا وَجَبَتْ لَهُ الْجَنَّةُ وَمَنْ أَثْنَيْتُمْ عَلَيْهِ شَرًّا وَجَبَتْ لَهُ النَّارُ أَنْتُمْ شُهَدَاءُ اللَّهِ فِي الأَرْضِ ‏"‏ ‏.‏
Translation
It was narrated that Abu Aswad Ad-Dili said

"I came to Al-Madinah and sat with 'Umar bin Al-Khattab. A funeral passed by and the deceased was praised, and 'Umar said: 'It is granted.' Then another passed by and the deceased was praised, and 'Umar Said: 'It is granted.' Then a third passed by, and the deceased was criticized, and 'Umar said: 'It is granted.' I said: What is granted, O commander of the believers?' He said: 'I said what the Messenger of Allah said: Any Muslim for whom four people bear witness and say good things, Allah will admit him to Paradise.' We said: 'Or three?' He said: 'Or three.' We said: 'Or two?' He said: 'Or two."'