It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever sees something from his ruler that he dislikes, let him be patient, for whoever separates from the community (jama'ah) and dies, dies the death of (the days of) ignorance (jahiliyyah)."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12704