Shaykh al-Islaam Ibn Taymiyyah (May Allaah have Mercy on him) said, “To know who the rulers are and to obey them is from the greatest obligations of the religion.
Rather, the religion and the Dunya cannot be established by disobeying them. This is because the fact Banee Aadam cannot have solitude and betterment in their affairs except through unity, as they are in need for one anothers assistance. For every affair there is a leader, to the extent that even if one is travelling then they should appoint a leader amongst them as it occurs in the Hadeeth, “If three of you set out on a journey then make one of them your leader.” (Narrated by Aboo Dawood)…
Therefore if it is obligatory for us to obey someone appointed as a leader even whilst we are travelling then other affairs in our daily lives also need to have the same organization. This is because Allaah, the Most High, has commanded us to enjoin good and forbid evil and this can’t be established except with strength and having a leader.
Likewise, Jihaad, justice, established of Hajj, ‘Eid festivals, repelling of the enemy, establishing the penal code etc. cannot be established except with strength, ability and a leader. Because of this, it has been narrated from the Salaf that they would say, ‘The leader is the shadow of Allah on the earth.’ And they would say, ‘Sixty years of a leader is better and more fruitful than sixty years without one.’ And facts are a witness to these statements.
It has also been narrated from some of the Salaf that they would supplicate for the ruler, like Ahmad bin Hanbal, Fudayl bin ‘Ayyaad and others. They would say, ‘If we had one supplication that would be answered then we would supplicate for the ruler.’”
Ref: Majmoo al-Fataawa (28/390-391)
Posted by Abdul Kareem Ibn Ozzie