This Bible contradiction is from the Skeptic's Annotated Bible.
Verses
Wisdom makes people happy.
Proverbs 3:13 View context
Happy [is] the man [that] findeth wisdom, and the man [that] getteth understanding.
Wisdom makes people miserable.
Ecclesiastes 1:18 View context
For in much wisdom [is] much grief: and he that increaseth knowledge increaseth sorrow.