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.