Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever goes to the gates of the ruler will be put to trial. A servant does not move closer to the ruler but that he moves further away from Allah.”
Source: Musnad Aḥmad 8836
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ أَتَى أَبْوَابَ السُّلْطَانِ افْتُتِنَ وَمَا ازْدَادَ عَبْدٌ مِنْ السُّلْطَانِ قُرْبًا إِلَّا ازْدَادَ مِنْ اللَّهِ بُعْدًا
8836 مسند أحمد بن حنبل
2240 المحدث الألباني الخلاصة حكم المحدث حسن صحيح في صحيح الترغيب