Thomas Aquinas,
Summa Theologiae — Question 163 - OF THE FIRST MAN'S SIN…
“ It is not a sin to covet God's likeness as to knowledge, absolutely; but to covet this likeness inordinately, that is, above one's measure, this is a sin. Hence Augustine commenting on Ps. 70:18, "O God, who is like Thee?" says: "He who desires to be of himself, even as God is of no one, wishes wickedly to be like God. Thus did the devil, who was unwilling to be subject to Him, and man who refused to be, as a servant, bound by His command."Reply to Objection 3: This argument considers the likeness of equality.Art. 3 - Whether the sin of our first parents was more grievous than other sins? ”
