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

Ecclesiastes 2:3

And I examined whether my heart would excite my flesh as [with] wine, (though my heart guided [me] in wisdom,) and [I desired] to lay hold of mirth, until I should see of what kind is the good to the sons of men, which they should do under the sun all the days of their life.

Read in other translations