More from The Gospel of John by J.C. Ryle (paragraph formatting mine):
Sickness, in the very nature of things, can never be anything but trying to flesh and blood. Our bodies and souls are strangely linked together, and that which vexes and weakens the body can hardly fail to vex the mind and soul.
But sickness, we must always remember, is no sign that God is displeased with us; no, more, it is generally sent for the good of our souls.
It tends to draw our affections away from this world, and to direct them to things above. It sends us to our Bibles, and teaches us to pray better. It helps to prove our faith and patience, and shows us the real value of our hope in Christ.
It reminds us that we are not to live always, and tunes and trains our hearts for our great change. Then let us be patient and cheerful when we are laid aside by illness.
Let us believe that the Lord Jesus loves us when we are sick no less than when we are well.
J.C. Ryle, The Gospel of John, KindleLocation 3565-72.