Narrated Abu Huraira: Allah's Messenger ﷺ said, "Whoever obeys me, obeys Allah, and whoever disobeys me, disobeys Allah, and whoever obeys the ruler I appoint, obeys me, and whoever disobeys him, disobeys me".
The hadith also encourages people to be loyal towards their rulers even if they do not agree with them or their decisions because it is a sign of respect for those who have been given authority over them. Moreover, it teaches us that we should always strive for justice and fairness in all matters so that everyone can live peacefully without any fear or oppression from anyone else.