Proverbs 21:18

NKJV
The wicked shall be a ransom for the righteous, And the unfaithful for the upright.