The great Imām
al-Barbahārī (died 329H, rahimahullaah)
stated the position and consensus of the Muslims towards their rulers: “If you
find a man making supplication against the ruler, know that he is a person of
innovation (deviation). If you find a person making supplication for the ruler
to be upright, know that he is a person of the Sunnah, if Allāh wills. We are
ordered to make supplication for them (i.e. the rulers) to be upright. We have
not been ordered to make supplication against them, even if they commit tyranny
and oppression, since their tyranny and oppression reflect only upon themselves
but their rectitude is good for themselves and the Muslims.” [29]
-------------------------
[29] Sharhus-Sunnah of al-Barbahārī.
SOURCE:
https://www.abukhadeejah.com