Proverbs 21:18

21:18 The wicked become a ransom for the righteous,

and the faithless are taken in the place of the upright.