From Summa Theologica:
On the contrary, It is written, “I am the Lord, and I change not” (Malachi 3:6).
I answer that, From what precedes, it is shown that God is altogether immutable.
First, because it was shown above that there is some first being, whom we call God; and that this first being must be pure act, without the admixture of any potentiality, for the reason that, absolutely, potentiality is posterior to act. Now everything which is in any way changed, is in some way in potentiality. Hence it is evident that it is impossible for God to be in any way changeable.
Secondly, because everything which is moved, remains as it was in part, and passes away in part; as what is moved from whiteness to blackness, remains the same as to substance; thus in everything which is moved, there is some kind of composition to be found. But it has been shown above (Question 3, Article 7) that in God there is no composition, for He is altogether simple. Hence it is manifest that God cannot be moved.
Thirdly, because everything which is moved acquires something by its movement, and attains to what it had not attained previously. But since God is infinite, comprehending in Himself all the plenitude of perfection of all being, He cannot acquire anything new, nor extend Himself to anything whereto He was not extended previously. Hence movement in no way belongs to Him. So, some of the ancients, constrained, as it were, by the truth, decided that the first principle was immovable.