Musnad Ahmad 1281
Grading supplied with this record: Hasan because of corroborating evidence]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It 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.
Full reference and source
Musnad Ahmad 1281 Arabic/English book : Book 5, Hadith 1281
View source on Sunnah.com (opens in a new tab)