One marvels at someone who has a measure of intellect (‘aql) or a shred of religiosity, that he prefers mingling with rulers. By associating with them or working with them, he is in fear of being removed, targeted or much worse. He will not be able to work except according to their dictates.
If they command him to commit an unlawful deed, he will not be able to decline without repercussions and thus, risks selling his Hereafter for this worldly life.
His fear prevents him from carrying out Allah’s order and reverts to invoking Allah before carrying them out.
(Source: al-Hafiz Abu’l-Faraj ibn al-jawzl [d. 597AH] “CAPTURED THOUGHTS being” a translation of his masterpiece ‘Sayd al-K hatir)