“It was said to Ibn ‘Umar: ‘We enter upon our rulers and say one thing, and when we leave we say something else.’ He said: ‘At the time of the Messenger of Allah (ﷺ), we used to regard that as hypocrisy.’”
Sunan Ibn Majah Book 36, Hadith 50