Riyad as-SalihinChapter 17Hadith 939
Full Sharh — Riyad as-Salihin 939
وعن ابن عمر رضي الله عنهما أن ناسًا قالوا له: إنا ندخل على سلاطيننا فنقول لهم بخلاف ما نتكلم إذا خرجنا من عندهم؟ قال ابن عمر رضي الله عنهما: كنا نعد هذا نفاقًا على عهد رسول الله صلى الله عليه وسلم ((رواه البخاري)).
English Translation
`Abdullah bin `Umar (May Allah be pleased with them) said:: Some people told me, "We visit our rulers and we tell them things contrary to those which we say when we depart from them." `Abdullah bin `Umar (May Allah be pleased with them) replied: "In the era of the Messenger of Allah (ﷺ) we considered this to be an act of hypocrisy." .
Source
Riyad as-Salihin(رياض الصالحين)
The Book of the Prohibited actions
Hadith Number
939