If we want to do something but cannot, then before God, Who knows our hearts, it is as if we have done it. This is true whether the intended action is good or bad.
A mind from which the thought of God has been carried away and which has thus become far removed from remembering Him, is also indifferent to sin with the outer senses. For such a mind can guide neither the hearing nor the tongue, since zest to work on itself has gone out of it.
In everything we do, God looks as the aim, whether it is for Him or for some other purpose we act. So, when we wish to do something good, let us have as our aim not to please men but to please God, so as to have our eyes always fixed on Him, doing everything for Him, lest we bear the labor but lose the reward.
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.
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.