As-Salaam alaikum,
As we know it in Islam, Riya' (hypocrisy) is one of the secret sins of the heart, and often the perpetrator of riya' is self-deluded and hardly realizes his hypocrisy. Hypocrisy means that the state of the heart, in its intention and desires, does not correspond to the virtue of the outward act; it is the desire for something beside Allah Ta'ala, in serving Him, and the desire to gain something from men by that service to Allah; it is to do an action, outwardly for the glory of Allah, but with the intention of having glory of men. The Noble Prophet, Sallallahu alaihi Wasallam, said:-- "The thing most to be feared for my community is hypocrisy and secret desire." If man is not heedful of the direction of his secret desires, they will corrupt his service of Allah.
In its most open form, hypocrisy is falsehood and in its most hidden form, it is guile. It is hidden from him who is neglectful and is manifest to him who searches for it with understanding knowledge; and he who knows the gravity of his need of it cleaves to sincerity, out of fear of hypocrisy.