It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: The Messenger of Allah (peace and blessings be upon him) sent me (as a judge) to a people who were elderly, while I was young. He (peace and blessings be upon him) advised me: "When two disputing parties come to you with a case, do not listen to one of them until you have also listened to the other, for in this way the judgement will become clear to you." Sayyiduna Ali (may Allah be pleased with him) said: "Then I learned this method, and after that I always remained a judge (who judged according to the truth)."
Hadith Referenceمسند أبي يعلى الموصلي / مسند علي بن أبي طالب رضي الله عنه / 371
Hadith Takhrij«قال سعيد بن محمد السناري: ضعيف بهذا التمام» «أخرجه سنن الترمذي برقم: 1331، وأخرجه سنن أبي داود برقم: 3582، وأخرجه مسند أحمد برقم: 668، 1149، 1287، 1344، وأخرجه فتح الباري برقم: 6758، وأخرجه مسند البزار برقم: 711، 721، 733، وأخرجه المستدرك على الصحيحين برقم: 4714، 7107، وأخرجه المعجم الأوسط للطبراني برقم: 3904، وأخرجه شرح مشكل الآثار برقم: 46، وأخرجه شرح السنة برقم: 2498، وأخرجه السنن الصغير للبيهقي برقم: 4129، مسند ابویعلیٰ ترقیم الاثری: 366»