(2) باب فِي الْقَاضِي يُخْطِئُ
Narrated Buraydah ibn al-Hasib:
The Prophet (ﷺ) said: Judges are of three types, one of whom will go to Paradise and two to Hell. The one who will go to Paradise is a man who knows what is right and gives judgment accordingly; but a man who knows what is right and acts tyrannically in his judgment will go to Hell; and a man who gives judgment for people when he is ignorant will go to Hell.Abu Dawud said: On this subject this is the soundest tradition, that is, the tradition of Ibn Buraidah: Judges are of three types.
Reference: Sunan Abi Dawud 3573
In-book reference: Book 25, Hadith 3
English translation: Book 24, Hadith 3566