Ecclesiastes 8:11-14 - Although Evil Is Not Punished Swiftly, God Does Eventually Punish Sinners
11 Whenever a sentence for a crime is not carried out swiftly, the human mind becomes determined to commit evil. 12 Even though a sinner does what is wrong a hundred times and still survives, nevertheless I also know that things will go well for those who fear God, who fear in his presence. 13 But things will not go well for the wicked person: he will not lengthen his life like a shadow, since he has no fear before God.
14 Here is a pointless thing that happens on earth: A righteous man receives what happens to the wicked, and a wicked man receives what happens to the righteous. I concluded that this, too, is pointless.