1281
Musnad AhmedIt was narrated that ‘Ali (رضي الله عنه) said:
The Prophet (ﷺ) sent me to Yemen as a judge. I said: “Are you sending me to people when I am young and have no knowledge of judging?” He placed his hand on my chest and said: “May Allah make you steadfast and help you to get it right. If two disputants come to you, do not pass judgement in favour of the first one until you listen to what the other one has to say. That is more helpful and will enable you to reach the correct verdict." Since then I have become a (good) judge.
Reference: Musnad Ahmad 1281
Arabic/English book : Book 5, Hadith 1281
Arabic/English book : Book 5, Hadith 1281