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

Ecclesiastes 8:17

And I saw all the works of God, that a man shall not be able to discover the work which is wrought under the sun; whatever things a man shall endeavor to seek, however a man may labor to seek it, yet he shall not find it; yes, how much soever a wise man may speak of knowing it, he shall not be able to find it: for I applied all this to my heart, and my heart has seen all this.

Read in other translations