Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states: “As Muslims, we must always trust in Allah. Allah never sends a test except to give us a chance to grow through it. So, ask yourself if your test has helped you to come closer to Allah. If it did, then you have passed the test; if on the other hand, it took you away, then you are failing the test; so come back to the Lord.
The Prophet (peace and blessings be upon him), said, “A believer is a wonderful person; all of his states are purely good for him. If some good comes his way, he gives thanks which is good for him; if on the other hand, some misfortune comes his way, he preserves patience, which also eventually turns out to be good for him.”
So, use this to grow spiritually; it is Allah alone Who decides when to give and when to withhold; call upon Him, surely you will never have reason to regret or feel sorry.
You can motivate yourself by thinking of the many trials faced by Prophets of Allah, who in spite of being the closest to Allah, were the ones exposed to the toughest of trials. So never be weak in faith because of your trials but learn to grow spiritually by means of them.
I pray that Allah inspires us with patience; remember “Allah is with those who persevere in patience” (Al-Baqarah: 153).”