Ecclesiastes 7:14
“In the day of prosperity be joyful, but in the day of adversity consider: God also hath set the one over against the other, to the end that man should find nothing after him.”
For wisdom is a defence, and money is a defence: but the excellency of knowledge is, that wisdom giveth life to them that have it.
Consider the work of God: for who can make that straight, which he hath made crooked?
In the day of prosperity be joyful, but in the day of adversity consider: God also hath set the one over against the other, to the end that man should find nothing after him.
All things have I seen in the days of my vanity: there is a just man that perisheth in his righteousness, and there is a wicked man that prolongeth his life in his wickedness.
Be not righteous over much; neither make thyself over wise: why shouldest thou destroy thyself?
Counter-Arguments
The strongest case that this verse does not belong in this theme.

Cross-References
“To every thing there is a season, and a time to every purpose under the heaven:”
“Set your affection on things above, not on things on the earth.”
“Wherefore I perceive that there is nothing better, than that a man should rejoice in his own works; for that is his portion: for who shall bring him to see what shall be after him?”
“A time to weep, and a time to laugh; a time to mourn, and a time to dance;”
“Is any among you afflicted? let him pray. Is any merry? let him sing psalms.”