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.
The Lord often humbles the vainglorious by causing some dishonor to befall them. And indeed the first step in overcoming vainglory is to remain silent and to accept dishonor gladly. The middle stage is to check every act of vainglory while it is still in thought. The end—insofar as one may talk of an end to an abyss—is to be able to accept humiliation before others without actually feeling it.
Even if we have innumerable virtues, the plague of vainglory is capable of destroying them all. If, then, we desire praises let us seek those which come from God.
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.