Allah the Exalted said:
٢٥٩ - باب ذم ذي الوجهين
Allah the Exalted said:
Yā, Seen.1
[An-Nisa: 108].
From Abū Hurayrah (may Allah be pleased with him), who said: The Messenger of Allah (peace and blessings be upon him) said: «You will find people to be like mines: the best of them in the pre-Islamic era are the best of them in Islam when they gain understanding. And you will find the best of people in this matter to be those most averse to it; and you will find the worst of people to be the two-faced one who comes to these with one face and to those with another.» Agreed upon (al-Bukhārī and Muslim).
From Muḥammad ibn Zayd: that some people said to his grandfather ʿAbdullāh ibn ʿUmar (may Allah be pleased with them both): We enter upon our rulers and say to them things contrary to what we say when we leave them. He said: We used to count this as hypocrisy in the time of the Messenger of Allah (peace and blessings be upon him). Recorded by al-Bukhārī.