A funeral procession passed in front of the Prophet ﷺ and the people praised the deceased. The Prophet ﷺ said, "It has been affirmed (Paradise)." Then another funeral procession passed by and the people talked badly of the deceased. The Prophet ﷺ said, "It has been affirmed (Hell)." Messenger of Allah ﷺ was asked, "O Messenger of Allah ﷺ! You said it has been affirmed for both?" The Prophet ﷺ said, "The testimony of the people (is accepted), (for) the believer are Allah's witnesses on the earth."
مُرَّ عَلَى النَّبِيِّ ﷺ بِجَنَازَةٍ فَأَثْنَوْا عَلَيْهَا خَيْرًا فَقَالَ وَجَبَتْ ثُمَّ مُرَّ بِأُخْرَى فَأَثْنَوْا عَلَيْهَا شَرًّا أَوْ قَالَ غَيْرَ ذَلِكَ فَقَالَ وَجَبَتْ فَقِيلَ يَا رَسُولَ اللَّهِ قُلْتَ لِهَذَا وَجَبَتْ وَلِهَذَا وَجَبَتْ قَالَ شَهَادَةُ الْقَوْمِ الْمُؤْمِنُونَ شُهَدَاءُ اللَّهِ فِي الأَرْضِ