Ali bin Abu Talib reported,

The Messenger of Allah ﷺ sent me to Yemen as a judge, so I said, "Messenger of Allah, you are sending me when I am young in age and have no knowledge of judging."He replied, "Allah will guide your heart and keep your tongue firm. When the two disputants sit before you, do not pass judgment until you have heard from the second just as you heard from the first, for that is more likely to make the correct judgment clear to you."He said, "I continued as a judge," or he said, "I never had doubt about a judgment after that."

Abu Dawud 3582

Daif

حدثنا عمرو بن عون قال أخبرنا شريك عن سماك عن حنش

عن علي عليه السلام قال

بعثني رسول الله ﷺ إلى اليمن قاضيا فقلت يا رسول الله ترسلني وأنا حديث السن ولا علم لي بالقضاء فقال إن الله سيهدي قلبك ويثبت لسانك فإذا جلس بين يديك الخصمان فلا تقضين حتى تسمع من الآخر كما سمعت من الأول فإنه أحرى أن يتبين لك القضاء قال فما زلت قاضيا أو ما شككت في قضاء بعد

أبو داود 3582ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Judgments
Chapter
How to make up (missed acts)
Numbering
Darussalam 3582
Abu Dawud 3582