When we are faced with trials we often get dismayed and sometimes we lose faith. However, with every trial we face we can turn towards Allah or we can turn away from Allah.
If we turn away from Allah then we will find that our problems will get bigger. If we turn back to Allah, we will see that our problems will seem insignificant.
Allah gives trials to those who He loves the most. How does that make sense? Because He wants to purifies us. Trials are blessings in disguise.