According to Dodar, St. Augustine held that
When good does result from human efforts, it is because they are never without divine assistance. Knowledge and love of God, the proper worship of God, are impeded by the dissonance of this free-floating selfhood. Augustine describes the sin of Adam and Eve as self-worship as opposed to the correct worship of God...Does Augustine define worship in this way? Aquinas distinguishes between charity and religion (both its internal and external acts). It does seem that for Aquinas, there can be no religion without charity.
The power or virtue whose action deals with an end, moves by its command the power or virtue whose action deals with matters directed to that end. Now the theological virtues, faith, hope and charity have an act in reference to God as their proper object: wherefore, by their command, they cause the act of religion, which performs certain deeds directed to God: and so Augustine says that God is worshiped by faith, hope and charity. (ST II II 81, 5 ad 1)
The body of the article, Aquinas on whether religion is a theological virtue:
Now due worship is paid to God, in so far as certain acts whereby God is worshiped, such as the offering of sacrifices and so forth, are done out of reverence for God. Hence it is evident that God is related to religion not as matter or object, but as end: and consequently religion is not a theological virtue whose object is the last end, but a moral virtue which is properly about things referred to the end.