There is purpose in your suffering. You can rejoice when it comes. You can rejoice because of what it produces. It is God’s crucible for growth. And if he’s growing you, he has a purpose for you.
Count it all joy my brothers, when you meet trials of various kinds, for you know that the testing of your faith produces steadfastness. (James 1:2)
In this you rejoice, though for a little while, if necessary, you have been grieved by various trials, so that the tested genuineness of your faith–more precious than gold that perishes though it is tested by fire–may be found to result in praise and glory and honor at the revelation of Jesus Christ. (1 Peter 1:7)
More than that we rejoice in our sufferings, knowing that suffering produces endurance, and endurance produces character, and character produces hope, and hope does not put us to shame because God’s love has been poured into our hearts through the Holy Spirit who has been given to us. (Romans 5:3-5)