It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever lives in the desert becomes harsh, whoever pursues game becomes heedless, and whoever comes to the ruler falls into trial. The nearer a servant draws to the ruler, the farther he becomes from Allah."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20255