Hazrat Moulana Muhammad Ilyaas (rahmatullahi ‘alaih) once mentioned:

A person should never ask Allah Ta‘ala to test him with calamities and difficulties. Instead, he should always beg Allah Ta‘ala for ‘aafiyah (ease). However, if Allah Ta‘ala tests a person with calamities and difficulties, then he should adopt sabr (patience) and understand that this is, in actual fact, a form of mercy from Allah Ta‘ala. Through adopting sabr and remaining patient, one’s sins will be forgiven and his rank will be raised in the Hereafter. One should also remember that all the Ambiyaa (‘alaihimus salaam), the Siddeeqeen and the pious friends of Allah Ta‘ala were tested during their lives with trials and tribulations and they gained great blessings and favours of Allah Ta‘ala through remaining patient. (Malfoozaat Hazrat Moulana Muhammad Ilyaas (rahmatullahi ‘alaih) pg. 27)