وعن ابن عمر رضي الله عنهم: أن نَاسًا قَالُوا لَهُ: إنَّا نَدْخُلُ عَلَى سَلاَطِيننَا فَنَقُولُ لَهُمْ بِخِلاَفِ مَا نَتَكَلَّمُ إِذَا خَرَجْنَا مِنْ عِندِهِمْ؟ قَالَ ابنُ عُمَرَ - رضي الله عنهم: كُنَّا نَعُدُّ هَذَا نِفاقًا عَلَى عَهْدِ رسول الله - صلى الله عليه وسلم. رواه البخاري.
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that some people said to him: We enter upon our rulers and say to them the opposite of what we say when we leave their presence? Sayyiduna Ibn Umar (may Allah be pleased with them both) said: We used to count this as hypocrisy in the time of the Messenger of Allah (peace and blessings be upon him).
(Narrated by al-Bukhari)