In the Quran, we read the story about the very rich man who lost all his wealth. The biggest takeaway from this story is all good and bad comes from God and that in the end, all of it is good.

He had two huge gardens

autumn, fall, and coffee image aesthetic, architecture, and autumn image green, sun, and wallpaper image fruit, food, and strawberry image amazing, art, and beautiful image home, house, and interior image
"...two gardens of grapevines, and We bordered them with palm trees and placed between them [fields of] crops. Each of the two gardens produced its fruit and did not fall short thereof in anything. And We caused to gush forth within them a river." (The Cave: 32-33)

So he thought he was better than his poor friend...

money, transfer, and money flip image car, red, and luxury image
"I am greater than you in wealth" (The Cave: 33) "I do not think that this will perish - ever" (The Cave: 35)

But his friend was looking out for him, reminding him he's just a human and that anything can happen. And he was hopeful in God's blessings.

bts, taehyung, and aesthetic image children, humble, and kids image
"It may be that my Lord will give me better" (The Cave: 40)

The rich man finally came to his senses, but only when it was too late:

flowers, rose, and pink image Image removed
"And his fruits were encompassed [by ruin], so he began to turn his hands about [in dismay]... 'Oh, I wish I had not associated with my Lord anyone'... And there was for him no company to aid him other than Allah" (The Cave: 42-43)

Something subtle in the last verse is that God helps everyone, even if they don’t believe in Him or are arrogant or make mistakes. God definitely helped this man by showing him his mistakes and taking away his garden. By taking his most beloved blessings, He let him change his ways and gave him a chance to be a better person and trust Him more.

So whenever you lose something, it's just God calling you back to Him, to remember Him, so He can give you better than what you had. And remembering Him is better than anything you could ever have in this world.

Since He created us, He knows how much we hurt when we lose something, so trust Him and say "Perhaps my Lord will give me better".