Proverbs 21:18 in the King James Version
The wicked shall be a ransom for the righteous, and the transgressor for the upright.
Context
17 He who loves pleasure will be a poor man. He who loves wine and oil won’t be rich.
18 The wicked is a ransom for the righteous, the treacherous for the upright.
19 It is better to dwell in a desert land, than with a contentious and fretful woman.