Allah’s Messenger (Blessings and Peace of Allah be upon him) said:
“Worry, anxiety, pain, fatigue, sickness or even a thorn that pricks him – when a believer is afflicted with any of these, Allah grants him pardon for some of his sins (through or because of those afflictions).”
This reward is for the one who is patient, who seeks his reward with Allah, who repents to Him, and who knows that all his dealings are solely with Allah, the Most Gracious.
“Don’t receive what time brings except with indifference,
As long as your soul is a companion for your body,
Whatever you are happy with is fleeting,
And sadness revives not lost loved ones.”
“In order that you may not be sad over matters that you fail to get, nor rejoice because of that which has been given to you.”