God knew immediately when Adam and Eve ate from the Tree of the Knowledge of Good and Evil. God knew they would sin. God knew where Adam and Eve were in the Garden. God called to them so they would answer. It would be impossible for God not to know everything.