We swore allegiance to God’s Messenger agreeing to hear and obey in time of difficulty and time of ease, in what we liked and what we disliked, to give way to others’ interests, not to dispute about government with those in power, and to say what was right wherever we were, not fearing for God’s sake what anyone who blamed us might say. A version has, “Not to dispute about government with those in power unless you see evident infidelity regarding which you have a proof from God.”
‘Ali reported God’s Messenger as saying, “No obedience is to be given in the case of an act of disobedience to God, obedience is to be given only regarding what is reputable.”
Ibn ‘Umar reported God’s Messenger as saying, “Hearing and obeying are the duty of a Muslim man both regarding what he likes and what he dislikes, as long as he is not commanded to perform an act of disobedience to God, in which case he must neither hear nor obey.”