This, too, I carefully explored: Even though the actions of godly and wise people are in God's hands, no one knows whether or not God will show them favor in this life.
The same destiny ultimately awaits everyone, whether they are righteous or wicked, good or bad, ceremonially clean or unclean, religious or irreligious. Good people receive the same treatment as sinners, and people who take oaths are treated like people who don't.
References for Ecclesiastes 9:2
It seems so tragic that one fate comes to all. That is why people are not more careful to be good. Instead, they choose their own mad course, for they have no hope. There is nothing ahead but death anyway.
There is hope only for the living. For as they say, "It is better to be a live dog than a dead lion!"
The living at least know they will die, but the dead know nothing. They have no further reward, nor are they remembered.
Whatever they did in their lifetime -- loving, hating, envying -- is all long gone. They no longer have a part in anything here on earth.
So go ahead. Eat your food and drink your wine with a happy heart, for God approves of this!
Wear fine clothes, with a dash of cologne!
Live happily with the woman you love through all the meaningless days of life that God has given you in this world. The wife God gives you is your reward for all your earthly toil.
Whatever you do, do well. For when you go to the grave, there will be no work or planning or knowledge or wisdom.
I have observed something else in this world of ours. The fastest runner doesn't always win the race, and the strongest warrior doesn't always win the battle. The wise are often poor, and the skillful are not necessarily wealthy. And those who are educated don't always lead successful lives. It is all decided by chance, by being at the right place at the right time.