Thomas Aquinas,
Summa Theologiae — Question 26 - OF THE DIVINE BEATITUDE…
“ Thus it is that, as everything desires the perfection of its nature, intellectual nature desires naturally to be happy. Now that which is most perfect in any intellectual nature is the intellectual operation, by which in some sense it grasps everything. Whence the beatitude of every intellectual nature consists in understanding. Now in God, to be and to understand are one and the same thing; differing only in the manner of our understanding them. Beatitude must therefore be assigned to God in respect of His intellect ”
