Mishkat al-Masabih
Ma'qil b. Yasar told that he heard God’s Messenger say, “Any governor in charge of Muslim subjects who dies while acting dishonestly towards them will be excluded by God from paradise.” (Bukhari and Muslim.)
وَعَنْ مَعْقِلِ بْنِ يَسَارٍ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم يقولُ: «مَا مِنْ والٍ بلي رَعِيَّةً مِنَ الْمُسْلِمِينَ فَيَمُوتُ وَهُوَ غَاشٌّ لَهُمْ إِلَّا حَرَّمَ اللَّهُ عَلَيْهِ الْجَنَّةَ»
Reference