And the Lord restored the fortunes of Job, when he had prayed for his friends. And the Lord gave Job twice as much as he had before.
Job 42:10 ESV
God may test us through trials, but God also restores the lives of those who faithfully endure them. Job lost everything, but Job did not waiver in his faith. Trials test and strengthen us. We have to trust God, rely on his strength, and put all of our hope in the one who has created us. God is all about restoring the faithful, take comfort in that fact.