Job 33:24 (ESV)

24 and he is merciful to him, and says, ‘Deliver him from going down into the pit; I have found a ransom;

If a sick man will listen to God’s messenger and humble himself, God will answer by sparing his life. God will view his penitence as a ransom and will forgive all his sins.