a manual of moral theology for english-speaking countries
p. 55
On the part of God there must be a promise made by Him to grant such a reward to such an action. For otherwise, after doing all that we can, we must acknowledge that we are useless servants, who cannot claim anything as due to them in justice from God, their Creator and Lord. He has every claim to our service without our having a strict right to any reward in return. According to the very probable teaching of St. Thomas, all the deliberate actions of one who is in a state of grace are either meritorious or sinful. In order to be in a state of grace, such a one must have fulfilled all the duties which bind him under pain of grievous sin, and among these is the obligation of eliciting at the proper times an act of love of God. By such an act the just man refers himself and all he does to God, and thus his good actions are elicited by the help of grace and tend to man's supernatural end, the beatific vision of God. In any case, if we are careful frequently to renew our intention of pleasing God, and with His grace remain free from mortal sin, we may rest in the assured hope that all our good actions are meritorious of life eternal.
De Malo, q. 2, a. 5, obj. 10; in lib. 2, dist. 40, a. 5, ad. 6.