كتاب المقدمات
The Book of Miscellany
(49)
Chapter: Making Judgment of people keeping in view their evident actions and leaving their hidden Actions to Allah (swt)
(49)
- باب إجراء أحكام الناس على الظاهر وسرائرهم إلى الله تعالى
Riyad as-Salihin 395
'Abdullah bin 'Utbah bin Mas'ud reported:
I heard 'Umar bin Al- Khattab (May Allah be pleased with him) reported saying: "In the lifetime of Messenger of Allah (ﷺ) some people were called to account through Revelation. Now Revelation has discontinued and we shall judge you by your apparent acts. Whoever displays to us good, we shall grant him peace and security, and treat him as a near one. We have nothing to do with his insight. Allah will call him to account for that. But whosoever shows evil to us, we shall not grant him security nor shall we believe him, even if he professed that his intention is good."

[Al-Bukhari].

وعن عبد الله بن عتبة بن مسعود قال‏:‏ سمعت عمر بن الخطاب، رضي الله عنه، يقول‏:‏ ‏ "‏إن ناساً كانوا يؤخذون بالوحي في عهد رسول الله صلى الله عليه وسلم وإن الوحى قد انقطع، وإنما نأخذهم الآن بما ظهر لنا من أعمالكم، فمن أظهر لنا خيراً، أمناه وقربناه، وليس لنا من سريرته شئ، الله يحاسبه في سريرته، ومن أظهر لنا سوءاً، لم نأمنه، ولم نصدقه وإن قال‏:‏ إن سريرته حسنة‏"‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 395
In-book reference : Introduction, Hadith 395