The wicked shall be a ransom for the righteous, and the transgressor for the upright. -Proverbs 21:18 KJV
I see two ways the wicked can be a ransom for the righteous and the transgressor for the upright.
First, the fulfillment of “you reap what you sow.”
Think of Haman from the book of Esther, who hoped to hang Mordecai, but was instead hung on the very gallows he had built.
Or the men who tried to trap Daniel and were themselves thrown into his pit of lions to be devoured.
In other words, if you plan evil against someone, you may very well find yourself suffering that fate.
Secondly, the ransom is not the payment but the prize.
Think of the kidnapped child. The “ransomed child” is paid for and redeemed.
(You probably see where this is going …)
Jesus Christ is the only truly righteous and upright One, and He sacrificed Himself for our ransom. Praise be to God that we wicked transgressors are the ransomed of Christ.
Likewise, we should go out and be willing to sacrifice everything to bring others to the knowledge of our Great Redeemer.