Difficulties and hardships are bounties of Allah
Ibn Taymiyyah rahmatullahi ‘alayh says: “From among the perfection of Allah’s bounty upon His believing servants is that He imposes difficulties and hardships upon them in such a way that it forces them towards believing in His Oneness. They then call upon Him in total devotion, they hope from Him and from no one else.In so doing their hearts are attached to Him and no one else.
They thus acquire the qualities of placing their trust in Him, turning to Him, experiancing the sweetness of iman, tasting its sweetness, and freedom from polytheism. All these qualities are a far greater bounty upon them than the removal of some illness, fear, drought or harm which they may have been experiencing. The abosolute devotion to Allah subhannahu wa ta ala that these believers in the oneness of Allah subhannahu wa ta ala acquire cannot even be described. Each believer has a share of this according to the strength of his iman.”
Taken from Sunnah way of the Sufis by Imam Harith al-Muhasibi (rahimahullah) researched and explained by Shaykh abdul Fattah Abu Ghuddah (rahimahullah) translated by mahomed mahomedy (Zam Zam Publishers)