Ecclesiastes 7:14-24 RSV

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 man may not find out anything that will be after him.
15 In my vain life I have seen everything; there is a righteous man who perishes in his righteousness, and there is a wicked man who prolongs his life in his evil-doing.
16 Be not righteous overmuch, and do not make yourself overwise; why should you destroy yourself?
17 Be not wicked overmuch, neither be a fool; why should you die before your time?
18 It is good that you should take hold of this, and from that withhold not your hand; for he who fears God shall come forth from them all.
19 Wisdom gives strength to the wise man more than ten rulers that are in a city.
20 Surely there is not a righteous man on earth who does good and never sins.
21 Do not give heed to all the things that men say, lest you 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?