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

Ecclesiastes 1:17

And I gave my heart to know wisdom, and to know madness and folly: I perceived that this also is vexation of spirit.

Read in other translations