Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates: “O you who believe! Obey Allah and obey the Messenger and those in authority among you.” ( an-Nisa: 59) (O you who believe! Obey Allah and obey the Messenger and those in authority among you.) This verse was revealed regarding Sayyiduna Abdullah bin Hudhafah bin Qais bin ‘Adi Sahmi (may Allah be pleased with him) when the Prophet (peace and blessings be upon him) appointed him as the commander of an army and sent him forth.
Hadith Referenceالمنتقى ابن الجارود / كتاب الطلاق / 1040
Sayyiduna Abdullah bin Umar (may Allah be pleased with them) narrates that the Messenger of Allah (peace and blessings be upon him) said: Obedience and listening (to the leader) is obligatory upon every Muslim as long as he is not ordered to disobey Allah Almighty; when he is ordered to commit a sin, then there is no listening or obedience.
Hadith Referenceالمنتقى ابن الجارود / كتاب الطلاق / 1041