Burayda reported,

The Prophet ﷺ said, "Judges are of three kinds, one in Paradise and two in the Fire. As for the one in Paradise, he is a man who recognized the truth and judged by it. A man who recognized the truth but acted unjustly in his ruling is in the Fire, and a man who judged between people in ignorance is in the Fire."

Abu Dawud 3573

Daif

حدثنا محمد بن حسان السمتي حدثنا خلف بن خليفة عن أبي هاشم

عن ابن بريدة عن أبيه

عن النبي ﷺ قال القضاة ثلاثة واحد في الجنة واثنان في النار فأما الذي في الجنة فرجل عرف الحق فقضى به ورجل عرف الحق فجار في الحكم فهو في النار ورجل قضى للناس على جهل فهو في النار

أبو داود 3573ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Judgments
Chapter
Judge errs
Numbering
Darussalam 3573
Abu Dawud 3573