-St. Basil of Caesarea, Hexaemeron, Homily I
If "In the beginning God created," the presupposition must necessarily be that God existed even before time itself, in a manner of existence which must be beyond our understanding. This means that God does not "change" nor is subject to change, but works within the universe of time from outside of it.
We perceive God in time because we are created beings, but God Himself is beyond the beginning and end of things; He knew exactly that Adam would sin, and when he did sin God knew exactly how He would redeem humanity. He knows exactly what will become of each and everyone of us because all of time and space are held in His hand.