Ecclesiastes 8:11-14 - Although Evil Is Not Punished Swiftly, God Does Eventually Punish Sinners

11 Because the sentence against an evil act is not executed quickly, the hearts of the sons of men are fully set to do evil. 12 Though a sinner does evil a hundred times and his life [seemingly] is prolonged [in spite of his wickedness], still I know that it will be well with those who [reverently] fear God, who fear and worship Him openly [realizing His omnipresence and His power]. 13 But it will not be well for the evil man, nor will he lengthen his days like a shadow, because he does not fear God.

14 There is a meaningless and futile thing which is done on the earth: that is, there are righteous men whose gain is as though they were evil, and evil men whose gain is as though they were righteous. I say that this too is futility (meaningless, vain).