Sunan Ibn Majah, Volume 5, Book 36, Hadith 3975 (DarusSalam) ⓘ
It was narrated that Abu Sha’tha said: “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.’”
حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا خَالِي، يَعْلَى عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ أَبِي الشَّعْثَاءِ، قَالَ قِيلَ لاِبْنِ عُمَرَ إِنَّا نَدْخُلُ عَلَى أُمَرَائِنَا فَنَقُولُ الْقَوْلَ فَإِذَا خَرَجْنَا قُلْنَا غَيْرَهُ . قَالَ كُنَّا نَعُدُّ ذَلِكَ عَلَى عَهْدِ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ النِّفَاقَ .
also referenced under: Hadith 3975 (Reference) & Book 36, Hadith 50 (In-Book)