Sayyiduna Abu Umamah (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) said: "Do not revile the rulers; rather, pray to Allah for them, for their rectitude is rectitude for you as well."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7578