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.
God the Word, the God-Man, our Lord Jesus Christ, compares our life with a market, and the work of our life on earth He calls trading, and says to us all: Trade till I come (Luke 19:13), redeeming the time, because the days are evil (Ephesians 5:16). That is to say, make the most of your time for getting heavenly blessings through earthly goods. Earthly goods are good works done for Christ's sake and conferring on us the grace of the All-Holy Spirit.
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 way of Godliness consists of these two things: True (pious) doctrines and good works. Without good works, true faith is not acceptable to God, likewise, good works are not acceptable to Him in the absence of True Faith (pious dogma).