Sharhu Sunnah : Lesson 27 : Point 32 (Part A)
Shaykh Fawzan | Dawud Burbank [Audio|English]
And know, that there is to be no obedience to any human in disobedience to Allaah, the Mighty and Majestic. And whoever is from the people of Islaam then do not bear witness (of Paradise or the Fire) for him on account of his having done a deed, whether good or bad, since you do not know what his deeds will be concluded with at the point of death. You hope for Allaah’s Mercy for him and you fear for him (because of his sins). You do not know what is destined for him at the point of death with regard to his repenting to Allaah and what Allaah may bring about for him at that time if he dies upon Islaam. You hope for (Allaah’s) Mercy for him and you fear for him because of his sins. And there is no sin except that the servant may repent from it.
[only highlighted portion of the above point is covered in this post]
His saying, “And know that there is to be no obedience to any human in disobedience to Allaah, the Mighty and Majestic.” This is an exception to what has preceded, referring to what he mentioned with regard to it being obligatory to obey the ruler, that it is not obligatory in everything. Rather, they are only to be obeyed in that which is not ma`siyah (a sin). As for if they command a sin, then they are not obeyed upon sin.
And there occurs in the hadeeth: that the Messenger sallAllaahu `alayhi wa sallam appointed a leader over an army detachment of the Companions. So when they proceeded upon the way, he (this leader) said to them, “Gather some firewood.” So, when they had gathered it, he said, “Set it on fire.” So, when they had set is blazing, he said, “Enter into the fire. Did not the Messenger sallAllaahu `alayhi wa sallam say, ‘Hear and obey’?” So some of them said, “We did not obey the Messenger except in order to flee away from the Fire so how can we then enter into it?!” So therefore they refused to enter into it. So when that (news) reached Allaah’s Messenger sallAllaahu `alayhi wa sallam he said, “If they had entered it then they would not have come out from it. Obedience is only in that which is good.” 
And he sallAllaahu `alayhi wa sallam said,
“There is to be no obedience to a created being in disobedience to the Creator.” 
And He, the Most High, said with regard to the parents:
And be thankful to Me and to your parents; the return will be to Me. And if those two strive…
Meaning the parents,
… to make you associate along with Me that which you have no knowledge of then do not obey them; but live with them in this world in a good manner; and follow the way of those who turn to Me.
(Soorah-Luqmaan (31), aayahs 14 and 15)
However that does not mean that obedience to the ruler ceases if he commands something sinful, but rather it means that he is not obeyed in that sin, whereas obedience to him remains in that which is not a sin. This is the meaning of “There is no obedience to a created being in disobedience to the Creator.”
So it is not to be said that Allaah has commanded obedience to the ruler and He has commanded fine treatment and obedience to the parents in everything. We say, yes Allaah commanded obedience to those in authority (but), upon what is good; and He commanded obedience to the parents, however in what is good, not in disobedience to Allaah, the Perfect and Most High.
(The hadeeth) has preceded. (Reported by al-Bukhaariyy (7145) and Muslim (1840) from a hadeeth of `Aliyy radiyAllaahu `anhu)
 It’s checking has preceded. (Reported by Imaam Ahmad and at-Tabaraaniyy and others from a hadeeth of `Imraan ibn Husayn radiyAllaahu `anhu)
Translator’s side point: Declared saheeh (authentic) by Shaykh al-Albaaniyy in As-Saheehah (no. 179)
Ithaaful-Qaaree bit-Ta`leeqaat `alaa Sharhis-Sunnah
(A Gift To The Reader In Annotation Of Sharh As-Sunnah)
by Shaykh Saalih ibn Fowzaan al-Fowzaan hafizahullaah
Translated by Aboo Talhah Daawood Burbank, rahimahullaah
Posted with kind permission from Dawud Burbank rahimahullaah
Listen to the full Audio Series of Sharhu Sunnah
Sharh-us-Sunnah – Shaykh Saalih Fawzaan – Dawood Burbank [Audio|En]