"قَاضِيَانِ فِي النَّار، وَقَاض في الْجَنَّةِ، قَاضٍ عَرَفَ الْحَقَّ فَقَضَى بِهِ فَهُوَ فِي الْجَنَّةِ، وَقَاضِ عَرف الْحَقَّ فَجَارَ مُتعَمِّدًا، أَوْ قَضَى بغَيرِ عِلْمٍ فَهُمَا في النَّارِ، قَالُوا: فَمَا ذَنْبُ هَذَا الَّذِي يَجْهَلُ؟ قَال: ذَنْبُه أَن لا يَكُونَ قَاضِيًا حَتَّى يَعْلَمَ".
[Machine] Narrated by the Prophet, peace be upon him, the judges are of three types: two judges in Hellfire and one judge in Paradise. The judge who recognizes the truth and judges accordingly will be in Paradise. The judge who recognizes the truth but unfairly rules against it will be in Hellfire. And the judge who rules without knowledge will also be in Hellfire.
عَنِ النَّبِيِّ ﷺ قَالَ الْقُضَاةُ ثَلَاثَةٌ قَاضِيَانِ فِي النَّارِ وَقَاضٍ فِي الْجَنَّةِ قَاضٍ عَرَفَ الْحَقَّ فَقَضَى بِهِ فَهُوَ فِي الْجَنَّةِ وَقَاضٍ عَرَفَ الْحَقَّ فَجَارَ مُتَعَمِّدًا فَهُوَ فِي النَّارِ وَقَاضٍ قَضَى بِغَيْرِ عِلْمٍ فَهُوَ فِي النَّارِ
[Machine] The Messenger of Allah ﷺ said, "There are two judges in Hell and one judge in Paradise. The judge who judged with justice will be in Paradise, and the judge who judged with injustice will be in Hell, and the judge who judged in ignorance will also be in Hell." They asked, "What is the sin of the one who judges in ignorance?" He replied, "His sin is that he should not be a judge until he knows." (Narrated by Muslim)
قَالَ رَسُولُ اللَّهِ ﷺ «قَاضِيَانِ فِي النَّارِ وَقَاضٍ فِي الْجَنَّةِ قَاضٍ قَضَى بِالْحَقِّ فَهُوَ فِي الْجَنَّةِ وَقَاضٍ قَضَى بِجَوْرٍ فَهُوَ فِي النَّارِ وَقَاضٍ قَضَى بِجَهْلِهِ فَهُوَ فِي النَّارِ» قَالُوا فَمَا ذَنْبُ هَذَا الَّذِي يَجْهَلُ قَالَ «ذَنْبُهُ أَنْ لَا يَكُونَ قَاضِيًا حَتَّى يَعْلَمَ» على شرط مسلم