Ecclesiastes 7:14-24 NRS

14 In the day of prosperity be joyful, and in the day of adversity consider; God has made the one as well as the other, so that mortals may not find out anything that will come after them.
15 In my vain life I have seen everything; there are righteous people who perish in their righteousness, and there are wicked people who prolong their life in their evildoing.
16 Do not be too righteous, and do not act too wise; why should you destroy yourself?
17 Do not be too wicked, and do not be a fool; why should you die before your time?
18 It is good that you should take hold of the one, without letting go of the other; for the one who fears God shall succeed with both.
19 Wisdom gives strength to the wise more than ten rulers that are in a city.
20 Surely there is no one on earth so righteous as to do good without ever sinning.
21 Do not give heed to everything that people say, or you may hear your servant cursing you;
22 your heart knows that many times you have yourself cursed others.
23 All this I have tested by wisdom; I said, "I will be wise," but it was far from me.
24 That which is, is far off, and deep, very deep; who can find it out?