Sayyiduna Abu Dharr (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) advised me: "That I should listen and obey, even if the commander is one whose limbs have been cut off."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قتال أهل البغي / 16607