God is omnipotent, omnipresent and omniscient. God is in control of everything in the universe. God even created Satan. Genesis 3:1 “Now the serpent was more crafty than any of the wild animals the LORD God had made.”
In the book of Job, Satan had to get permission from God to inflict pain and suffering on Job. Job 1:9-12 “Does Job fear God for nothing?” Satan replied. 10 “Have you not put a hedge around him and his household and everything he has? You have blessed the work of his hands, so that his flocks and herds are spread throughout the land. 11 But now stretch out your hand and strike everything he has, and he will surely curse you to your face.”12 The Lord said to Satan, “Very well, then, everything he has is in your power, but on the man himself do not lay a finger.” God knew Job would not forsake Him so he let Satan destroy everything Job had in order to prove that God is in complete control of everything that happens on earth. Later God blessed Job far beyond what Job lost.