‘Ubadah ibn Al-Samit (may Allah be pleased with him) said, “We gave the pledge of allegiance to hear and obey at our times of vigor or unwillingness, our times of ease or difficulty, and to give preference over ourselves and that we should not dispute the authority over matters with those charged to lead them and he (the Prophet, peace be upon him) said, ‘Unless you see blatant Kufr (disbelief) for which you have a proof from Allah.’” - Bukhari