The way of Godliness consists of these two things: True (pious) doctrines and good works. Without good works, true faith is not acceptable to God, likewise, good works are not acceptable to Him in the absence of True Faith (pious dogma).
The most important thing during illness is to offer to God patience and thanksgiving for His merciful visitations. Sickness purifies sins and gives one time to meditate on the past.