לְֽפִי־שִׂ֭כְלוֹ יְהֻלַּל־אִ֑ישׁ וְנַעֲוֵה־לֵ֝֗ב יִהְיֶ֥ה לָבֽוּז׃
A man shall be commended according to his intelligence; But he that is of a distorted understanding shall be despised.
Read midrashic interpretation of Proverbs 12:8: and classical rabbinic exegesis.