Ecclesiastes 8:11-14 - Although Evil Is Not Punished Swiftly, God Does Eventually Punish Sinners
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 one hundred times and his judgment is prolonged, yet surely I know that it shall be well with those that fear God, who fear before his presence; 13 but it shall never be well with the wicked, neither shall his days be prolonged, which are as a shadow, because he did not fear before the presence of God.
14 There is another vanity which is done upon the earth: that there are just men, who are recompensed as if they had done according to the work of the wicked; again, there are wicked men, who are recompensed as if they had done according to the work of the righteous; I say that this also is vanity.