Many human beings are stirred to spiritual deeds for the sake of some temporal goods, but the disordered covetousness of temporal goods is not on that account sinless. So also although many perform virtuous deeds for the sake of glory, the disordered desire for glory is not on that account sinless, since we should perform virtuous deeds for their own sake, or rather for God's sake, not for the sake of glory.
Thomas Aquinas, De Malo 9.1 ad 6. 'Glory' here means (following a definition by Augustine) 'clear recognition accompanied by praise'.
[Thomas Aquinas, On Evil, Regan, tr., Oxford University Press (Oxford: 2003) p. 344.]