Ibn ‘Abbas reported God’s Messenger as saying, “If anyone sees in his commander what he dislikes he should show patience, for no one separates a span's distance from the community and dies without dying like those of pre-Islamic times.”
Abu Huraira told that he heard God’s Messenger say, “He who abandons obedience and separates from the community and then dies, will die like those of pre-Islamic times; he who fights under a banner of ignorance* showing anger in support of party spirit, or summoning people to party spirit, or helping party spirit, and then is killed will be killed like those of pre-Islamic times; and he who goes out against my people with his sword smiting the virtuous and the reprobate, not keeping away from those who are believers or observing covenants which have been made, has nothing to do with me and I have nothing to do with him.”
Muslim transmitted it.
*'Immiya, or 'ummiya, meaning either pride or error. I have translated it as ‘‘ignorance, for it is explained as being here used of people who fight without considering whether they are in the right or not.
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.”