There are three types of judges. One class of judges is Jannati, and two classes of judges are Jahannami. (1) The judge who realizes the truth and judges accordingly is in Paradise. (2) The judge who can realize the truth but does not judge accordingly is hellish. (3) Another class of judges cannot comprehend the truth. Judging on the basis of ignorance, he is also hellish. (Abu Dawood)