The Last Messenger Prophet Muhammad (SAW) said: "The affair of the believer is amazing! The whole of his life is beneficial, and that is only in the case of the believer. When good times come to him, he is thankful (to Almighty Alloh) and it is good for him, and when bad times befall him, he is patient and it is also good for him" [Muslim].
Man is tested in accordance with the strength of his faith. It was not a surprise that the Messenger of Almighty Alloh and other Prophets were so patient and persevering in the face of calamities that confronted them, because they certainly knew that Alloh had not decreed these trials on His servants in order to destroy them. They knew that Alloh ordained the trials for great wisdoms and immense benefits.
But if he loses his faith in Almighty Alloh and starts complaining about his tribulations, Almighty Alloh further increases his punishment. Suffering is inevitable in this temporary life. On the one hand, they are the consequences of our personal sins and shortcomings too, and the moral corruption of others. On the other hand, personal loss is a means of salvation for a believer and represents a divine bridge of forgiveness from the Lord, Most High.
Among the benefits is that Alloh tests the patience of His servants so as to know if they are eligible for the best in the eternal life after death. If he therefore perseveres, Almighty Alloh chooses him, honours him and makes him among His favoured slaves.
Ibn Abbas (RTA) reported that The Last Messenger Prophet Muhammad (SAW) used to supplicate in times of trouble saying: "There is no god but Alloh the Great, the Tolerant, there is no god but Alloh, the Lord of the Magnificent Throne; there is no god but Alloh, the Lord of the heaven and the earth, the Lord of Edifying Throne".
Conclusion:
For some reason we have thought that the life of faith is a life free from troubles. Instead, the life of faith is a life overcoming troubles. Life of faith (Imaan) nourishes our soul, encourages our mind and strengthens our physique to stand in the defence of our Islamic values. The first line of defence is personal commitment and example by which others observe to take heed.
Some people have thought that the victorious faithful life is a life without battles. But this is not true. Victory assumes that there was a battle. You can't say "I won the battle" when you didn't have an opponent. The beauty of life is to face trials and tribulations with perseverance that is where the help from Almighty Alloh comes to face the challenges. Ultimately, the believers overcome the hurdles through their persistence against evils, certainly Almighty Alloh help those who seek His blessings in fight against evils.
You may recently have become a devout Muslim and are living by the message in The-Qur’an, standing on the promises of Almighty Alloh. And now it seems as though all hell has broken out against you- -sickness has constantly been plaguing you, finances have been scarce, your family is fighting life cats and dogs. Nothing good is happening to you. All these problems start against you as tests by Almighty Alloh to develop resistance to evils. You are never alone in facing the tests, your enhanced knowledge, sense of piety and trust in Almighty Alloh would make you pass such tests. You need to preserve your senses, attitude and personal integrity by having faith in Almighty Alloh.
Trials and tribulations may be happening to you because the devil is attacking you to erode your faith in Almighty Alloh. Since you decided to live by faith and reverence to Almighty Alloh, you became a threat to Satan and his kingdom. He is afraid of your continually developing faith. As long as you stayed in your lusty life and refused to act on the Word of The-Qur’an, you were no threat to Satan. Now that you have been born again, you're in a war with him. It is not strange that we must go through much tribulation to enter the blessings of Calvary, because we have an enemy who is trying to keep us from entering the promises of Almighty Alloh.
So in the end, trials can be beneficial. This is why we can count it pure joy when we face trials of many kinds- -because the testing of our faith develops perseverance. Perseverance must finish its work so that we will be mature and complete, not lacking any good thing- -when that happens, the trial has ended!
No condition is permanent. The trials and tribulations are timely, the nature of such things are like passage of time in night and day. Preserve in the teachings of The-Qur’an, abide by the tenets of Islam, keep your integrity, supplicate for the betterment and seek material guidelines continually. The next morning brings rays of hope which would enlighten you path (Insha Alloh).