This is an evil in all that is done under the sun: that one and the same fate comes to all. And the heart of the sons of man is full of evil, and madness is in their hearts while they live — and after that, to the dead.
In context
1All this I laid to heart, and all this I sifted: that the righteous and the wise and their works are in the hand of God. Whether it be love or hate, man does not know; everything lies before them. 2Everything is the same for everyone: one and the same fate comes to the righteous and the wicked, to the good and the clean and the unclean, to the one who sacrifices and the one who does not sacrifice; as it is for the good man, so for the sinner; for the one who swears, as for the one who is afraid to swear. 3This is an evil in all that is done under the sun: that one and the same fate comes to all. And the heart of the sons of man is full of evil, and madness is in their hearts while they live — and after that, to the dead. 4For whoever is joined to all the living has hope: a living dog is better off than a dead lion. 5For 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.