The wicked shall be brought into those troubles which were either threatened by God or designed by wicked men against the righteous, and by that means, as by a ransom, the righteous shall be delivered. Thus Achan was a ransom for Israel, Jos_7:26, and Haman for Mordecai.