Jesus knew ahead of time all things that were going to transpire regarding His death and resurrection. He had determined every event before He created the first man on the earth. The plan of salvation for all people was not an afterthought for God: it was the first thing that He considered when He determined to create us.
From eternity, God had already known everything that would take place and every act that He was going to accomplish. This is what makes the Lord—God: the fact that He knows everything, and there is nothing that He must learn.
Acts 15:18 “Known to God from eternity are all His works.
The preeminent purpose of all Bible Prophecy is to demonstrate in the realm of linear time, that God has already seen all the events that will take place. When He speaks, He does so as if all the events He describes had already transpired. In eternity, nothing is future; everything has already happened. When God speaks of future events, they are only future to those who live on the earth. For God everything in all of time is already complete. No event is outside of the knowledge of God, and He is not predicting the future when He speaks a word of prophecy. He is simply describing what has already taken place.