Elder Richard G Scott:
Just when all seems to be going right, challenges often come in multiple doses applied simultaneously. When those trials are not consequences of your disobedience, they are evidence that the Lord feels you are prepared to grow more (see Prov. 3:11–12). He therefore gives you experiences that stimulate growth, understanding, and compassion which polish you for your everlasting benefit. To get you from where you are to where He wants you to be requires a lot of stretching, and that generally entails discomfort and pain.
When you face adversity, you can be led to ask many questions. Some serve a useful purpose; others do not. To ask, Why does this have to happen to me? Why do I have to suffer this, now? What have I done to cause this? will lead you into blind alleys. It really does no good to ask questions that reflect opposition to the will of God. Rather ask, What am I to do? What am I to learn from this experience? What am I to change? Whom am I to help? How can I remember my many blessings in times of trial? Willing sacrifice of deeply held personal desires in favor of the will of God is very hard to do. Yet, when you pray with real conviction, “Please let me know Thy will” and “May Thy will be done,” you are in the strongest position to receive the maximum help from your loving Father. (GC 1995 "Trust In The Lord" Richard G Scott)