Narrated 'Aishah (RA):
I heard Allah's Messenger (ﷺ) saying, "the just Qadi (judge) will be called (forth) on the Day of Resurrection and he will wish he had never given judgement even between two men throughout his life, due to the severity of the account he will face."[Reported by Ibn Hibban. al-Baihaqi reported it with the wording: "...concerning a single tamrah (date fruit).
Reference: Bulugh al-Maram 1408
In-book reference: Book 14, Hadith 12
English translation: Book 14, Hadith 1408