Allah tests those whom He loves. When we feel like we are truly being tested, we shouldn't shut down and feel like the world has turned their back on us. We must be patient and accept Allah's qadr. This is one of those moments in life where we can do nothing but leave everything up to Allah swt. We don't know what's right or what is wrong for us. Only He does, so in realizing that, we will God Willing feel content with what ever decision He has made for us. There's a sense of peace that comes with understanding that our fate is not in our hands, but in Allah's hands.
Keep firm in prayer and remain steadfast in patience because inshAllah, in the end, everything will work out even better than we had imagined