Hadith 3736
Mishkat al-Masabih
The Offices of Commander and Qadi · How to Conduct the Office of Qadi, and Fear of it - Section 2
Arabic
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ طَلَبَ قَضَاءَ الْمُسْلِمِينَ حَتَّى يَنَالَهُ ثُمَّ غَلَبَ عَدْلُهُ جَوْرَهُ فَلَهُ الْجَنَّةُ وَمَنْ غَلَبَ جَوْرُهُ عَدْلَهُ فَلَهُ النَّار» . رَوَاهُ أَبُو دَاوُد
English translation
Abu Huraira reported God’s Messenger as saying, “If anyone seeks the office of qadi among Muslims till he gets it and his justice prevails over his tyranny, he will go to paradise; but the man whose tyranny prevails over his justice will go to hell." Abu Dawud transmitted it.