Ecclesiastes 9:1-6 ESV
But all this I laid to heart, examining it all, how the righteous and the wise and their deeds are in the hand of God. Whether it is love or hate, man does not know; both are before him. It is the same for all, since the same event happens to the righteous and the wicked, to the good and the evil, to the clean and the unclean, to him who sacrifices and him who does not sacrifice. As the good one is, so is the sinner, and he who swears is as he who shuns an oath. This is an evil in all that is done under the sun, that the same event happens to all. Also, the hearts of the children of man are full of evil, and madness is in their hearts while they live, and after that they go to the dead. But he who is joined with all the living has hope, for a living dog is better than a dead lion. For the living know that they will die, but the dead know nothing, and they have no more reward, for the memory of them is forgotten. Their love and their hate and their envy have already perished, and forever they have no more share in all that is done under the sun.