The Messenger of Allah ﷺ said: After me there will be favouritism and many things that you will not like. They (his Companions) said: Messenger of Allah, what do you order that one should do if anyone from us has to live through such a time? He said: You should discharge your own responsibility (by obeying your Amir), and ask God for your right (by guiding the Amir to the right path or by replacing him by one more just and God-fearing). (Using translation from Muslim 1843)
قَالَ رَسُولُ اللهِ ﷺ إِنَّهَا سَتَكُونُ فِتَنٌ وَأُمُورٌ تُنْكِرُونَهَا قَالُوا يَا رَسُولَ اللهِ فَمَا تَأْمُرُنَا؟ قَالَ تُؤَدُّونَ الْحَقَّ الَّذِي عَلَيْكُمْ وَتَسْأَلُونَ اللهَ ﷻ الَّذِي لَكُمْ