HAKIM 7013:
from Ibn Buraydah from his father —
[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)
الحاكم ٧٠١٣:
عن ابن بريده عن أبيه —
قَالَ رَسُولُ اللَّهِ ﷺ «قَاضِيَانِ فِي النَّارِ وَقَاضٍ فِي الْجَنَّةِ قَاضٍ قَضَى بِالْحَقِّ فَهُوَ فِي الْجَنَّةِ وَقَاضٍ قَضَى بِجَوْرٍ فَهُوَ فِي النَّارِ وَقَاضٍ قَضَى بِجَهْلِهِ فَهُوَ فِي النَّارِ» قَالُوا فَمَا ذَنْبُ هَذَا الَّذِي يَجْهَلُ قَالَ «ذَنْبُهُ أَنْ لَا يَكُونَ قَاضِيًا حَتَّى يَعْلَمَ» على شرط مسلم
hadithunlocked.com