The servant complains to God of pain:
in a hundred ways he moans.
God says, "But after all, grief and pain
have caused you to act rightly and humbly call on Me;
complain instead of the bounty that befalls you
and takes you far from My door."
In reality every enemy of yours is your remedy:
he is an elixir, a gift, and one that seeks to win your heart;
for you flee from him into solitude
imploring God's help.
...Mathnawi IV: 91-95, Mevlana Rumi