Across the Bible, God shares with those who listen that He allows problems, trials, suffering and problems to cause us to grow. I've lived with Chronic, Intractable pain for more than 15 years now. In Psalms 119:71 it says, "It is good that I was aflicted, that I might learn Your statutes." I'm a better person because of the trials I've suffered.
James 1:2-4 says, "Consider it all joy, my brothers and sisters, when you encounter various trials, knowing that the testing of your faith produces endurance. And let endurance have its perfect result, so that you may be perfect and complete, lacking in nothing.