Sayyiduna Abu Hurairah and Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with them) narrate that the Messenger of Allah (peace and blessings be upon him) said: "Soon after me, some will be given preference over others, and matters will arise which you will dislike." The Companions (may Allah be pleased with them) asked: O Messenger of Allah! What do you command us to do when such circumstances arise? He (peace and blessings be upon him) said: "Give the people their due rights and ask your own right from Allah, the Exalted."
Related hadith on this topic