Ecclesiastes 1:18 in the King James Version
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.
Context
17 I applied my heart to know wisdom, and to know madness and folly. I perceived that this also was a chasing after wind.
18 For in much wisdom is much grief; and he who increases knowledge increases sorrow.