If you examine your life well, you will find many instances when God showed His unmistakable mercy to you. Trouble was brewing, but it passed you by for some reason. God delivered you. Acknowledge these and thank God, Who loves you.
An old man was asked, 'How can I find God?' He said, 'In fasting, in watching, in labors, in devotion, and, above all, in discernment. I tell you, many have injured their bodies without discernment and have gone away from us having achieved nothing. Our mouths smell bad through fasting, we know the Scriptures by heart, we recite all the Psalms of David, but we have not that which God seeks: charity and humility.'
If you have received from God the gift of knowledge, however limited, beware of neglecting charity and temperance. They are virtues which radically purify the soul from passions and so open the way of knowledge continually.
Great is this mystery, and great is the mercy of God towards man. If all the people of the earth knew how deeply the Lord loves man their hearts would be filled with love of Christ and Christ’s humility, and they would seek to be like Him in all things. But man cannot do this by himself, for it is only in the Holy Spirit that he can become like unto Christ. Man that is fallen purifies himself through repentance, and is made new by the grace of the Holy Spirit, and in all things becomes like unto the Lord.
Even if we have thousands of acts of great virtue to our credit, our confidence in being heard must be based on God's mercy and His love for men. Even if we stand at the very summit of virtue, it is by mercy that we shall be saved.
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.
If someone is judged worthy to receive the gift of knowledge but allows his heart to be full of bitterness or rancor or aversion to another, it is as if he had been struck in the eye by a thornbush. That is why knowledge is no good without charity.
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.