Compunction comes when you consider how much you have grieved God Who is so good, so sweet, so merciful, so kind, and entirely full of love; Who was crucified and suffered everything for us. When you meditate on these things and other things the Lord has suffered, they bring compunction.
The roof of any house stands upon the foundations and the rest of the structure. The foundations themselves are laid in order to carry the roof. This is both useful and necessary, for the roof cannot stand without the foundations and the foundations are absolutely useless without the roof-- no help to any living creature. In the same way the grace of God is preserved by the practice of the commandments, and the observance of these commandments is laid down like foundations through the gift of God. The grace of the Spirit cannot remain with us without the practice of the commandments, but the practice of the commandments is of no help or advantage to us without the grace of God.
You can see that a city is prosperous by the wealth of goods for sale in the market. Land too we call prosperous if it bears rich fruit. And so also the soul may be counted prosperous if it is full of good works of every kind. But first of all it has to be farmed energetically. Then it must be watered by abundant streams of heavenly grace for it to bring forth fruit, some thirty fold, some sixty fold, and some a hundred fold. The soul only acquires goodness and the capacity of fulfilling its duties if it has the grace of God On the other hand, what is uglier or more disgusting than a soul given over to base passions? Look at the hot-headed person: he is like a wild beast. Consider the slave of lust or gluttony: who can bear the sight of him? Pity the victim of melancholy whose spirit is totally prostrated. It is for us to seek to acquire beauty so that the Bridegroom, the Lord, may welcome us into his presence and say, “You are utterly fair, my love, and there is no flaw in you.” (Song of Sol 4:7)
Almsgiving heals the soul's incensive power; fasting withers sensual desire; prayer purifies the intellect and prepares it for contemplation of created beings. For the Lord has given us commandments which correspond to the powers of the soul.
The way to attain compunction is an attentive life. ‘The beginning of repentance comes from the fear of God and attention,’ as the holy martyr Boniface says.
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.