i'm sorry. it's from Ecclesiastes 7:4.
in the same book, Solomon said "with much wisdom comes much sorrow" (1:18)
this might be why he also recommended "Do not be overrighteous, neither be overwise-- why destroy yourself?" (7:16)
the wisest of men found no pleasure in his wisdom, and little else helpful than fearing God. this is wisdom too - God alone gives wisdom and understanding; He will help you though i cannot.