8 A righteous person is delivered out of trouble, and the wicked takes his place.
Proverbs 11:8 Cross References - WEB
Esther 7:9-10
9 Then Harbonah, one of the eunuchs who were with the king said, “Behold, the gallows fifty cubits high, which Haman has made for Mordecai, who spoke good for the king, is standing at Haman’s house.” The king said, “Hang him on it!”
10 So they hanged Haman on the gallows that he had prepared for Mordecai. Then the king’s wrath was pacified.
Proverbs 21:18
18 The wicked is a ransom for the righteous, the treacherous for the upright.
Isaiah 43:3-4
Daniel 6:23-24
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 kind of harm was found on him, because he had trusted in his God.
24 The king commanded, and they brought those men who had accused Daniel, and they cast them into the den of lions, them, their children, and their wives; and the lions mauled them, and broke all their bones in pieces, before they came to the bottom of the den.