Asalamualikum my sister
Certainly it happened to me many times.
When ever a calamity or a hardship befalls you sister it was predestined to happen, never give up trust in Allah, stay steadfast in the path of Allah. Inshallah.
"So, verily, with every difficulty, there is relief. Verily, with
every difficulty there is relief. Therefore, when thou art free
(from thine immediate task), still labor hard.
And to thy Lord turn (all thy attention)," (Holy Quran 94:5-8).