This reminded me of Job. In Job 1:20-22
20 Job stood up and tore his robe in grief.
Then he shaved his head and fell to the ground to worship.
21 He said,
“I came naked from my mother’s womb,
and I will be naked when I leave.
The Lord gave me what I had,
and the Lord has taken it away.
Praise the name of the Lord!”
22 In all of this, Job did not sin by blaming God.
There are times, whether we like it or not God might take things away from us but later on
restore it back to us. Our faith grows stronger. However, there is one promise that I remembered
while typing this reply to you.
Jeremiah 29:11
New International Version
11 For I know the plans I have for you,” declares the Lord, “plans to prosper you and not to harm you, plans to give you hope and a future.
https://www.biblegateway.com/passage/?search=Jeremiah 29&version=NIV
It is painful to lose something but I know God has a purpose in what he does we just can't see it for now. I pray God will reveal it to you in time to come in Jesus name!