Sa'id bin al-Musayyib (may Allah have mercy on him) said that the Messenger of Allah (peace and blessings be upon him) said: "The foundation of intellect, after faith, is showing love to people for the sake of Allah. No man should consider himself free of the need for consultation. Those who do good in this world will be the people of good in the Hereafter, and those who do evil in this world will be the people of evil in the Hereafter."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20306