Muhammad bin Zayd bin Abdullah bin Umar reported,

Some people said to Ibn Umar, "We enter upon our rulers and say to them the opposite of what we speak when we leave their presence."He replied, "We used to consider that hypocrisy."In another narration, "We used to consider this hypocrisy during the time of the Prophet ﷺ."

Azami 7668

Sahih

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

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

الأعظمي 7668صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Leadership
Section
Dislike of excessive praise of the ruler in his presence and slandering him in his absence
Numbering
Jami al-Kamil 7668 (2nd edition)
Azami 7668