Romans 5:3-4

And not only that, but we also rejoice in our afflictions, because we know that affliction produces endurance, endurance produces proven character, and proven character produces hope.