“The goal of the Jihadist sects is one and the same: rebellion against those in authority and a desire to rule over the Muslim lands. They may alter their names and titles but their ideology remains the same. Islaam itself, despite what these sects assert, forbids open censure and rebellion against even the most wicked and tyrannical of Muslim rulers.
The Prophet of Allaah (may peace and blessings of Allaah be upon him), upon whose statements and actions we establish our religion, stated in an authentic tradition:
“There will appear after me rulers, they will not guide by my guidance, and they will not establish my Sunnah; there will be amongst them men whose hearts will be hearts of devils in the bodies of men!” He was asked: “How should I behave, O Messenger of Allaah, if I reach that time?” He replied: “Hear and obey the Ameer (i.e. the ruler), even if he beats your back and [illegally] takes your wealth – hear and obey!” 
There are five traits in this statement in the presence of which it is still obligatory to hear and obey the rulers in that which constitutes good: their lack of implementing the Prophetic guidance, their lack of implementing the Prophetic Sunnah, their having the hearts of devils, their beating their subjects and illegally taking their wealth. A bitter pill to swallow for those not truly nurtured upon the Qur’aan and the authentic Prophetic Methodology.
In another authentic tradition, the Messenger (may peace and blessings of Allaah be upon him) stated:
“Hear and obey the ruler in that which is difficult for you and in that which is easy for you, in times of invigoration and in times of dislike and weariness and when others are given preferential treatment over you – even if they take and consume your wealth and they beat your back – except that you do not obey them if it involves disobedience to Allaah.” 
And there will be those of little faith and even less knowledge that will frown and cringe when they hear these texts, finding any excuse to reject them due to their blind following of their extremist groups and ideologues, usually by utilising labels of apostasy upon rulers and thereby claiming that they are not bound to abide by these texts…“
 Muslim in the Saheeh, The Book of Rulership.
 Ibn Hibbaan in his Saheeh, no. 4562, authenticated by al-Albaanee.
Note that the Prophet commanded the Muslims not to obey the ruler in disobedience to Allaah, but he did not command with rebellion. And it is possible to disobey the Ruler without raising the sword against him or calling for his overthrow.