In The Name of Allaah, The Most Merciful, The Bestower of Mercy.
Security cannot be [established] properly except by way of two affairs: Implementation of Allaah’s Laws and obedience to the rulers. Indeed, the Messenger [sallal-laahu-alayhi-wasallam] clarified this [affair] which is needed by a Muslim in his life. Irbaad Saariyah [radiyallaahu-anhu] said, “The Messenger of Allaah [sallal-laahu-alayhi-wasallam] gave us an admonition after the morning prayer –an admonition that made our hearts fearful and our eyes tearful. So, a man said, ‘Indeed, is this a farewell sermon, so what do you advise us?’ He said, ‘I enjoin you to have Taqwa of Allah and that you listen and obey, even if an Abyssinian slave [is made a ruler over you]; for indeed he among you who lives long enough will see many differences. So, beware of newly invented matters [in the religion] because indeed it is misguidance. And whoever among you witnesses that, then it is obligated on him to adhere to my Sunnah and the Sunnah of the rightly guided khulafaa, adhere to it with your molar teeth’”. [Reported by Ahmad 3/126]
Indeed, this hadeeth establishes the foundations of security in Islaam and they are: Firstly: Taqwallaah [Fear of Allaah (The Most High)] based on its complete and comprehensive meaning. Secondly: Obedience to the rulers [in what is good]. Fear of Allaah rectifies a Muslim’s relationship with Allaah, his neighbours and everything around him; and in the absence of Allaah’s Sharee’ah, destruction and depravity will occur. Indeed, Allaah [The Mighty and Majestic] warned the one who abandons His Sharee’ah and is disobedient to His Messenger. [Allaah said]:
وَضَرَبَ اللَّهُ مَثَلًا قَرْيَةً كَانَتْ آمِنَةً مُّطْمَئِنَّةً يَأْتِيهَا رِزْقُهَا رَغَدًا مِّن كُلِّ مَكَانٍ فَكَفَرَتْ بِأَنْعُمِ اللَّهِ فَأَذَاقَهَا اللَّهُ لِبَاسَ الْجُوعِ وَالْخَوْفِ بِمَا كَانُوا يَصْنَعُونَ
And Allah puts forward the example of a township (Makkah), that dwelt secure and well content; its provision coming to it in abundance from every place, but it (its people) denied the Favours of Allah (with ungratefulness). So Allah made it taste the extreme of hunger (famine) and fear, because of that (evil, i.e. denying Prophet Muhammad) which they (its people) used to do. [16:112]
By listening to the rulers and obeying them [in good], all the affairs of the person’s life in his society will be a state of normality. Listening to the rulers and obeying them [in good] is included in the subject matter of Taqwa [fear of Allaah]. Al-Hasan Al-Basri [rahimahullaah] used to say, “Indeed, Al-Hajjaaj is the punishment of Allaah; so do not repel the punishment of Allaah with your own hands. Rather you must submit and show humility because Allaah] The Most High] said: [وَلَقَدْ أَخَذْنَاهُم بِالْعَذَابِ فَمَا اسْتَكَانُوا لِرَبِّهِمْ وَمَا يَتَضَرَّعُونَ – And Indeed We seized them with punishment, but they humbled not themselves to their Lord, nor did they invoke (Allaah) with submission to Him]”. [23:76]
Talq Bin Habeeb (rahimahullaah) used to say: Guard against fitna through Taqwa; so, it was said to him, “Summarize (the meaning) of Taqwa for us.’’ He said, ‘’It is act in obedience to Allah, with a light from Allah (i.e. Eemaan) and hoping for Allaah’s Mercy. And that you abandon disobedience to Allah with a light from Allah and fearing the punishment of Allah. [Reported by Ibn Abee Shaybah 11/33 and Ibnul Mubaarak in Az-Zuhd 473]
So, you find a person who knows what security is and his understanding regarding it increases due to fear of Allaah, and he is eager to obey the rulers [in good]; but when he falls short [in Taqwa], his perception of security becomes deficient. When Taqwa is actualised, he will receive the promise Allaah has mentioned [in Surah An-Noor]. Allaah said:
وَعَدَ اللَّهُ الَّذِينَ آمَنُوا مِنكُمْ وَعَمِلُوا الصَّالِحَاتِ لَيَسْتَخْلِفَنَّهُمْ فِي الْأَرْضِ كَمَا اسْتَخْلَفَ الَّذِينَ مِن قَبْلِهِمْ وَلَيُمَكِّنَنَّ لَهُمْ دِينَهُمُ الَّذِي ارْتَضَىٰ لَهُمْ وَلَيُبَدِّلَنَّهُم مِّن بَعْدِ خَوْفِهِمْ أَمْنًا ۚ يَعْبُدُونَنِي لَا يُشْرِكُونَ بِي شَيْئًا ۚ وَمَن كَفَرَ بَعْدَ ذَٰلِكَ فَأُولَٰئِكَ هُمُ الْفَاسِقُونَ
Allah has promised those among you who believe, and do righteous good deeds, that He will certainly grant them succession to (the present rulers) in the earth, as He granted it to those before them, and that He will grant them the authority to practise their religion, that which He has chosen for them (i.e. Islam). And He will surely give them in exchange a safe security after their fear (provided) they (believers) worship Me and do not associate anything (in worship) with Me. But whoever disbelieved after this, they are the Fasiqun (rebellious, disobedient to Allah). [24:55]
Indeed, it is known that the religion cannot [be established] without a Jamaa’ah and there cannot be a Jamaa’ah without a leader, and there cannot be a leader except through listening to him and obeying [him in what is good]. An absence of obedience to the ruler and putting oneself before him is one of the greatest causes of corrupting the land and the people, and turning away from the path of guidance and uprightness. Al Hasan Al Basri [rahimahullaah] said: By Allaah! The religion cannot be established except by way of rulers even if they commit tyranny and oppression- due to the many affairs that Allaah rectifies through them more than what they corrupt.’’ http://www.abukhadeejah.com/the-tyranny-of-the-rulers-a-reason-for-rebellion/
Ibn Rajab [rahimahullaah] said: ‘’There is [good and great advantage] in the worldly life when rulers are obeyed. And by way of it [i.e. obedience to the rulers], the beneficial affairs related to the livelihood of the people are established and they utilise them as an aid through which they manifest their religion and obey their Lord.’’ http://www.abukhadeejah.com/the-tyranny-of-the-rulers-a-reason-for-rebellion/
Disobedience to the rulers and putting oneself before them through fighting or other than that [is tantamount] to disobeying Allaah and His Messenger, and an opposition to that which Ahlus Sunnah Wal Jamaa’ah were upon – the pious predecessors.
Source: An Excerpt from ‘Silsilah Ar-Rasaa-il Al-Manhajiyyah Fin Nushi War’irshaad Wat-Taw’iyah’ pages 11-14.’ slightly paraphrased