Sayyidina Ali reported that Allah’s Messenger said to him, “If two people bring to you a dispute then do not judge for the first until you have heard the disposition of the second. So, soon you will know how to decide.” Sayyidina Ali said, “I did not cease to be a qadi after that.”
[Abu Dawud 3582, Ibn e Majah 2310, Ahmed 535]
--------------------------------------------------------------------------------