Proverbs 11:8

A righteous man is delivered out of trouble, and a wicked man comes in his stead.

Proverbs 21:18

A wicked man is a ransom for a righteous man, and the treacherous dealer for the upright.

Esther 7:9-10

Then Harbonah, one of the chamberlains who were before the king said, Behold also, the gallows fifty cubits high, which Haman has made for Mordecai, who spoke good for the king, stands in the house of Haman. And the king said, Hang

Isaiah 43:3-4

For I am LORD thy God, the Holy One of Israel, thy Savior. I have given Egypt as thy ransom, Ethiopia and Seba in thy stead.

Daniel 6:23-24

Then the king was exceedingly glad, and commanded that they should take Daniel up out of the den. So Daniel was taken up out of the den, and no manner of harm was found upon him, because he had trusted in his God.

Treasury of Scripture Knowledge

Summary

The righteous is delivered out of trouble, and the wicked cometh in his stead.

Bible References

General references

Proverbs 21:18
A wicked man is a ransom for a righteous man, and the treacherous dealer for the upright.
Esther 7:9
Then Harbonah, one of the chamberlains who were before the king said, Behold also, the gallows fifty cubits high, which Haman has made for Mordecai, who spoke good for the king, stands in the house of Haman. And the king said, Hang
Isaiah 43:3
For I am LORD thy God, the Holy One of Israel, thy Savior. I have given Egypt as thy ransom, Ethiopia and Seba in thy stead.
Daniel 6:23
Then the king was exceedingly glad, and commanded that they should take Daniel up out of the den. So Daniel was taken up out of the den, and no manner of harm was found upon him, because he had trusted in his God.