Ecclesiastes 8:8-10 English Standard Version (ESV)

8. No man has power to retain the spirit, or power over the day of death. There is no discharge from war, nor will wickedness deliver those who are given to it.

9. All this I observed while applying my heart to all that is done under the sun, when man had power over man to his hurt.

10. Then I saw the wicked buried. They used to go in and out of the holy place and were praised in the city where they had done such things. This also is vanity.

Ecclesiastes 8