(3) باب الْحَاكِمِ يَجْتَهِدُ فَيُصِيبُ الْحَقَّ
Abu Hashim said:
"Were it not for the Hadith of Ibn Buraidah from his father, from the Prophet (ﷺ) who said: 'Judges are of three types, two of whom will be in Hell and one will be in Paradise. The man who knows the truth and rules in accordance with it, will be in Paradise. The man who passes judgment on the people in ignorance will be in Hell' - we would have said that if the judge does his best he will be in Paradise."
Reference: Sunan Ibn Majah 2315
In-book reference: Book 13, Hadith 8
English translation: Vol. 3, Book 13, Hadith 2315