Ecclesiastes 8:11-14 New King James Version (NKJV)

11. Because the sentence against an evil work is not executed speedily, therefore the heart of the sons of men is fully set in them to do evil.

12. Though a sinner does evil a hundred times, and his days are prolonged, yet I surely know that it will be well with those who fear God, who fear before Him.

13. But it will not be well with the wicked; nor will he prolong his days, which are as a shadow, because he does not fear before God.

14. There is a vanity which occurs on earth, that there are just men to whom it happens according to the work of the wicked; again, there are wicked men to whom it happens according to the work of the righteous. I said that this also is vanity.

Ecclesiastes 8