The Most Hated of People to Allah

Ibn ‘Adi has narrated from Abu Hurayrah (ra) that the Messenger of Allah ﷺ said, ‘In Hell, there is a valley from which the Fire seeks refuge seventy times a day. Allah (swt) has prepared it for the jurists who act to be admired by people. And the most hated of people to Allah (swt) is the scholar of the ruler.’

Imam Qurtubi: Knowledge of Obedience to the Caliph is like Knowledge of Prayers and Fasting

"and that would be part of the dīn of Allah which is obliged for him, just as every responsible person knows from the dīn of Allah what is obliged for him regarding the five prayers, fasting Ramadan, ḥajj and the like"