When God allows us to go through trials and tribulations we are told in scripture that we should be thankful for them, which at the time may be a hard thing to do.
1 Peter 1:6-7, In all this you greatly rejoice, though now for a little while you may have had to suffer grief in all kinds of trials. These have come so that the proven genuineness of your faith-of greater worth than gold, which perishes even though refined by fire-may result in praise, glory and honor when Jesus Christ is revealed.