عن عبد الله بن عتبة بن مسعود، قال: سمعت عمر بن الخطاب رضي الله عنه يقول: إن ناسا كانوا يُؤْخَذُونَ بالوحي في عهد رسول الله صلى الله عليه وسلم وإن الوحي قد انقطع، وإنما نأخذكم الآن بما ظهر لنا من أعمالكم، فمن أظهر لنا خيرًا أَمَّنَّاهُ وقَرَّبْنَاهُ، وليس لنا من سريرته شيء، الله يحاسبه في سريرته، ومن أظهر لنا سوءًا لم نأمنه ولم نصدقه وإن قال: إن سريرته حسنة.
‘Umar ibn al-Khattāb (may Allah be pleased with him) spoke about the one who concealed evil intentions at the time of divine revelation, and how that was made known to the Prophet (may Allah's peace and blessings be upon him) through the revelation. During the time of the Messenger of Allah (may Allah's peace and blessings be upon him) some people were hypocrites, pretending to be good while concealing evil.
However, Allah, the Exalted, exposed them through the revelation to His Messenger (may Allah's peace and blessings be upon him). When the revelation ceased, people were incapable of knowing the hypocrites, because hypocrisy is in the heart. He thus said that they started judging people by what appears to them. So whoever appeared to be good, they dealt with him according to what he showed, even if he had evil intentions.
Whoever appeared to be evil, they dealt with him according to the evil he showed, and they were not responsible for his intention. The intention is entrusted to the Lord of the Worlds, Exalted and Glorified, who knows what one's inner self whispers to him.
Download for free and never miss a prayer again