2 Corinthians 7:10
Godly sorrow brings repentance that leads to salvation and leaves no regret, but worldly sorrow brings death.
Distress that drives us to God does that. It turns us around. It gets us back in the way of salvation. We never regret that kind of pain. But those who let distress drive them away from God are full of regrets, end up on a deathbed of regrets.