It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "On the Day of Resurrection, the most beloved of people to Allah Almighty and the one seated nearest to Him will be a just ruler; and on the Day of Resurrection, the most hated of people to Allah Almighty and the one in the severest punishment will be an unjust ruler." In the narration of Abu Ya'la al-Mawsili the wording is that the Messenger of Allah (peace and blessings be upon him) said: "On the Day of Resurrection, the highest of people in rank will be the just ruler, and on the Day of Resurrection, the lowest of people in rank will be the ruler who is not just." It is also narrated through another route that the Messenger of Allah (peace and blessings be upon him) said: "On the Day of Resurrection, the most severely punished of people will be an unjust ruler," and Imam al-Tabarani has also narrated it in al-Mu'jam al-Awsat. Imam al-Tirmidhi recorded it in his Jami' with these words, that the Messenger of Allah (peace and blessings be upon him) said: "On the Day of Resurrection, the most beloved to Allah Almighty and the one seated nearest to Him will be a just ruler, while the most hated to Allah Almighty and the one seated farthest from Him will be an unjust ruler." Imam al-Tirmidhi said: This hadith is hasan gharib.