وَمِنْ مُسْنَدِ عَلِيِّ بْنِ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ
5  
Musnad 'Ali Ibn Abi Talib
Musnad Ahmad 1211
It was narrated that ‘Ali (رضي الله عنه) said:
The Messenger of Allah (ﷺ) said: “If two men come to you for judgement, do not rule in favour of the first one until you listen to what the other one says, then you will know how to judge.” He said: Since then I became a good judge.
حَدَّثَنَا حُسَيْنُ بْنُ عَلِيٍّ، عَنْ زَائِدَةَ، عَنْ سِمَاكٍ، عَنْ حَنَشٍ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا تَقَاضَى إِلَيْكَ رَجُلَانِ فَلَا تَقْضِ لِلْأَوَّلِ حَتَّى تَسْمَعَ مَا يَقُولُ الْآخَرُ تَرَى كَيْفَ تَقْضِي قَالَ فَمَا زِلْتُ بَعْدُ قَاضِيًا‏.‏
Grade: Hasan because of corroborating evidence and its isnad is da'eef because of the weakness of Hanash] (Darussalam)
Reference : Musnad Ahmad 1211
In-book reference : Book 5, Hadith 619