Trials present us with a choice:
Will we pray or complain.
Will we seek God or become bitter toward Him.
Will we draw near to God, or allow the trial to drive us from Him.
Will we trust God or rebel against Him.
The same experience can have vastly different results depending on how we choose to respond.
1 Pet. 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. 7 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.