Allah surely loves those who are the Sabireen (the one who patient).
The Quran 3 – 146.
Hardships and ease are a trial for you. Everything Allah chooses for you from good or evil is for your benefit. Whatever occurred to you could not have missed you and what missed you could never have reached you.
Rewards are only for those who are patient with the Decree of Allah.
Panic and impatience cannot prevent Allah’s Decree complaining is contradictory to Sabr patience.
Allah alone can protect you from harm and ease your difficulties.
Sabr is obligatory!
If the affliction results from acts of obedience to Allah such as injury on the battlefield losing money during Hijrah migrating for the sake of Allah losing a job because of accepting Islam or because one attempts to follow the Sunnah of Allah’s Messenger PBUH like growing the beard wearing the lower garment above the ankles etc then the affliction is a trial. Whoever bears it with patience will be rewarded and whoever exhibits annoyance may invoke the wrath of Allah upon himself.
If the affliction befalls due to sinful actions such as illnesses caused by drinking alcohol and using drugs etc then the affliction is a punishment from Allah. Hasten to avoid all sinful acts and turn towards Allah in repentance and ask his forgiveness. Otherwise know that the punishments of the Hereafter are far more severe and unbearable.
If the affliction is neither connected to neither a good deed nor a sin such as other kinds of disease and sickness losing a child or failing in business then you should evaluate your actions. If you are involved in some kind of disobedience to Allah then the affliction is a punishment for you and a reminder to leave your evil deeds.
Otherwise Allah has caused this affliction to test your patience.
As The Messenger of Allah PBUH He said.
One amongst the inhabitants of Hell who had lived a life of ease and pleasure in the world would be made to dip in the Hell Fire only once on the Day of Resurrection. Then he would be asked.
O son of Adam Did you find any comfort. Did you get any blessing? He would say.
By Allah no my Lord! Then a person from the inhabitants of Paradise who had led the most miserable life in the world would be made to dip once in Paradise and it would be said to him.
O son of Adam did you face any hardship or experience any distress? he would say By Allah! No never have I experienced any hardship or distress.
Saheeh Muslim No. 6738.
And in the Quran Allah says.
And certainly We shall test you with something of fear hunger loss of wealth lives and fruits but give glad tidings to as-Saabireen the patient ones.
Who when afflicted with calamity say Verily to Allah we belong and verily to Him we shall return.
They are those on whom are the Salawaat i.e who are blessed and will be forgiven from their Lord and they are those who receive His Mercy and it is they who are the guided-ones.
The Quran 2:155 – 157.