Now just as the being of a thing depends on the agent, and the form, so the goodness of a thing depends on its end. Hence in the Divine Persons, Whose goodness does not depend on another, the measure of goodness is not taken from the end.
 Thomas Aquinas, Summa Theologica (1274). copy citation

add
Author Thomas Aquinas
Source Summa Theologica
Topic goodness
Date 1274
Language English
Reference
Note Translated by Fathers of the English Dominican Province
Weblink http://www.gutenberg.org/cache/epub/17897/pg17897-images.html

Context

“Now in some things the being does not depend on another, and in these it suffices to consider their being absolutely. But there are things the being of which depends on something else, and hence in their regard we must consider their being in its relation to the cause on which it depends. Now just as the being of a thing depends on the agent, and the form, so the goodness of a thing depends on its end. Hence in the Divine Persons, Whose goodness does not depend on another, the measure of goodness is not taken from the end. Whereas human actions, and other things, the goodness of which depends on something else, have a measure of goodness from the end on which they depend, besides that goodness which is in them absolutely.
source