Muhammad bin Zayd reported,

Some people said to Ibn Umar, "We enter upon our rulers and say to them things contrary to what we say once we have left them."He replied, "We used to consider that hypocrisy."

Bukhari 7178

Sahih

حدثنا أبو نعيم حدثنا

عاصم بن محمد بن زيد بن عبد الله بن عمر عن أبيه قال

أناس لابن عمر إنا ندخل على سلطاننا فنقول لهم خلاف ما نتكلم إذا خرجنا من عندهم قال كنا نعدها نفاقا

البخاري 7178صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Rulings
Chapter
What is disliked of praising the ruler, and if he leaves he says otherwise
Numbering
Darussalam 7178
Bukhari 7178