Ecclesiastes 8:13–14

13 But it will not be well for the evil man and he will not lengthen his days like a shadow, because he does not fear God.

14 There is futility which is done on the earth, that is, there are righteous men to whom it happens according to the deeds of the wicked. On the other hand, there are evil men to whom it happens according to the deeds of the righteous. I say that this too is futility.