Abdullah ibn Utbah reported: I heard Umar ibn Al-Khattab, may Allah be pleased with him, say, “Verily, in the time of the Messenger of Allah, peace and blessings be upon him, the people would be judged by revelation, but the revelation has ended. Now we judge you according to your outward deeds. Whoever shows us good, we will trust him and favor him and it is not for us to judge his inner secrets, for Allah will hold him accountable for those. Whoever shows us evil, then we will not trust him or believe in him even if he claims his intention is good.”
Source: Sahih Bukhari 2498
Grade: Sahih (authentic) according to Al-Bukhari
عَبْدَ اللَّهِ بْنَ عُتْبَةَ قَالَ سَمِعْتُ عُمَرَ بْنَ الْخَطَّابِ رَضِيَ اللَّهُ عَنْهُ يَقُولُ إِنَّ أُنَاسًا كَانُوا يُؤْخَذُونَ بِالْوَحْيِ فِي عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَإِنَّ الْوَحْيَ قَدْ انْقَطَعَ وَإِنَّمَا نَأْخُذُكُمْ الْآنَ بِمَا ظَهَرَ لَنَا مِنْ أَعْمَالِكُمْ فَمَنْ أَظْهَرَ لَنَا خَيْرًا أَمِنَّاهُ وَقَرَّبْنَاهُ وَلَيْسَ إِلَيْنَا مِنْ سَرِيرَتِهِ شَيْءٌ اللَّهُ يُحَاسِبُهُ فِي سَرِيرَتِهِ وَمَنْ أَظْهَرَ لَنَا سُوءًا لَمْ نَأْمَنْهُ وَلَمْ نُصَدِّقْهُ وَإِنْ قَالَ إِنَّ سَرِيرَتَهُ حَسَنَةٌ
2498 صحيح البخاري كِتَاب الشَّهَادَاتِ بَاب الشُّهَدَاءِ الْعُدُولِ