Isaiah 14:26-27 ESV This is the purpose that is purposed concerning the whole earth, and this is the hand that is stretched out over all the nations. (27) For the LORD of hosts has purposed, and who will annul it? His hand is stretched out, and who will turn it back?
GOD IS: God is Omniscient and knows all things from the beginning.
Isaiah 46:9-10 ESV remember the former things of old; for I am God, and there is no other; I am God, and there is none like me, (10) declaring the end from the beginning and from ancient times things not yet done, saying, 'My counsel shall stand, and I will accomplish all my purpose,'
Therefore, He has a plan and purpose which in His power and wisdom He carries out for His glory and for the redemption of His people. It would be a confusing world if every act and happening surprised God and required Him to improvise to rescue His program from disaster.
The three Hebrew children in the fiery furnace, Daniel in the lion's den, and Joseph sold cruelly into Egypt, demonstrate the working of Divine purpose and grace: All of these events turned out to the blessing of His people and to His own glory.
Genesis 50:20 ESV As for you, you meant evil against me, but God meant it for good, to bring it about that many people should be kept alive, as they are today.