Ecclesiastes 8:12-14

MLV(i) 12 Though a sinner does evil a hundred times and prolongs his days, yet surely I know that it will be well with those who fear God, who fear before him. 13 But it will not be well with a wicked man, neither will he prolong his days, which are as a shadow, because he did not fear before God.
14 There is a vanity which is done upon the earth, that there are righteous 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.