Khalid bin Ma'dan (may Allah have mercy on him) said that a man said: O Messenger of Allah! What is hazm (prudence)? He (peace and blessings be upon him) said: "To consult a person of sound opinion, then to follow him."
(b) Abdullah bin Abd al-Rahman bin Abi Husayn (may Allah have mercy on him) said that a man said: O Messenger of Allah! (and he mentioned) the like of it, except that in it are the words 'dha lubb' (a person of understanding).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20321