Isaiah 38:17

New International Version Bible (NIV)
Surely it was for my benefit
    that I suffered such anguish.
In your love you kept me
    from the pit of destruction;
you have put all my sins
    behind your back.

Read Isaiah 38:17 in other translations