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

Ecclesiastes 7:14

In the day of prosperity live joyfully, and consider in the day of adversity: consider, [I say], God also has caused the one to agree with the other for [this] reason, that man should find nothing after him.

Read in other translations