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.
A man is neither saved nor lost by the place he is in, but is saved or lost by his deeds. Neither a holy place nor a holy state is of use to him who does not fulfill the commandments of the Lord.
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.