The worst sort of vainglory, however, according to Thomas Aquinas, occurs when we fail to give due glory to God as the source of our good.

Glittering Vices: A New Look at the Seven Deadly Sins and Their Remedies
Rebecca Konyndyk DeYoung