Proverbs 11:8

The righteous is delivered out of trouble, and the wicked comes in his place.

Proverbs 21:18

The wicked shall be a ransom for the righteous, and the transgressor for the upright.

Esther 7:9-10

And Harbonah, one of the eunuchs, said before the king, Also look! the wooden gallows fifty cubits high which Haman made for Mordecai, who had spoken good for the king, stands in the house of Haman. Then the king said, Hang him on it!

Isaiah 43:3-4

For I am Jehovah your God, the Holy One of Israel, your Savior; I gave Egypt for your ransom, Ethiopia and Seba for you.

Daniel 6:23-24

Then the king was exceedingly glad for him, and commanded that they should take Daniel up out of the den. So Daniel was taken up out of the den, and no kind of hurt was found on him, because he 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
The wicked shall be a ransom for the righteous, and the transgressor for the upright.
Esther 7:9
And Harbonah, one of the eunuchs, said before the king, Also look! the wooden gallows fifty cubits high which Haman made for Mordecai, who had spoken good for the king, stands in the house of Haman. Then the king said, Hang him on it!
Isaiah 43:3
For I am Jehovah your God, the Holy One of Israel, your Savior; I gave Egypt for your ransom, Ethiopia and Seba for you.
Daniel 6:23
Then the king was exceedingly glad for him, and commanded that they should take Daniel up out of the den. So Daniel was taken up out of the den, and no kind of hurt was found on him, because he trusted in his God.