Allah's Messenger (ﷺ) said, "If any ruler having the authority to rule Muslim subjects dies while he is deceiving them, Allah will forbid Paradise for him."
Sahih al-Bukhari Book 93, Hadith 15