Ali bin Abu Talib reported,

The Messenger of Allah ﷺ said to me, "When two men bring a dispute before you, do not rule in favor of the first until you have heard what the other has to say. Then you will know how to judge."Ali said, "I never wavered as a judge after that."

Tirmidhi 1331

Daif

حدثنا هناد حدثنا حسين الجعفي عن زائدة عن سماك بن حرب عن حنش

عن علي قال

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

الترمذي 1331ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Rulings
Chapter
A judge should not pass judgment between two disputants until he hears both their statements
Numbering
Darussalam 1331
Tirmidhi 1331