Proverbs 11:8 (NKJV) — 8 The righteous is delivered from trouble, And it comes to the wicked instead.
A stand-in for the righteous. Though trouble may appear inevitable, the righteous person will ultimately be delivered from it. The righteous person will be replaced in that troubled situation by a wicked person.
Proverbs 21:18 (NKJV) — 18 The wicked shall be a ransom for the righteous, And the unfaithful for the upright.