Muhammad bin Zaid reported:
Some people said to my grandfather, 'Abdullah bin 'Umar (May Allah be pleased with them): We visit our rulers and tell them things contrary to what we say when we leave them. 'Abdullah bin 'Umar (May Allah be pleased with them) replied: "In the days of the Messenger of Allah (ﷺ), we counted this act as an act of hypocrisy."[Al-Bukhari]. (JA)
App reference (JA): Book 18, Hadith 31 (JA)
Arabic/English book reference (JA): Book 18, Hadith 1541 (JA)