Proverbs 21:18

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

Surrounding context

21:17 He who loves pleasure will be a poor man; He who loves wine and oil will not be rich.

21:18 The wicked shall be a ransom for the righteous, And the unfaithful for the upright.

21:19 Better to dwell in the wilderness, Than with a contentious and angry woman.

Translation and sources