Abu Sa'id al-Khudri (may Allah be pleased with him) states that the Messenger of Allah (peace and blessings be upon him) said: "The most beloved of people to Allah on the Day of Resurrection, and the nearest of them to me in seating, is a just ruler; and the most hated of people to me on the Day of Resurrection, and the most severely punished, is an unjust ruler."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20169