Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
KJV

Ecclesiastes 1:18

For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Read in other translations