Sayyiduna Uqbah bin Amir (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Shall I not tell you about the good and the bad among your rulers?" The Companions said: Certainly, O Messenger of Allah. He (peace and blessings be upon him) said: "The good among them for you are those whom you love and who love you, for whom you pray and who pray for you; and the bad among them for you are those whom you hate and who hate you, whom you curse and who curse you." The Companions said: O Messenger of Allah, shall we not fight them? He (peace and blessings be upon him) said: "No, leave them as long as they fast and pray."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14880