There is a difference then between the things which are done through the good angels and the wicked angels. For the good angels do nothing unless they are moved to do it by the divine command and will, for in all things they follow the divine will. But, the wicked angels dissent from God in their will and so the things which they do are hostile to God as far as their intention is concerned. Because we do not usually ask about the things which we do, but only those things which happen without us, the text therefore does not say that the Lord asked anything of the sons of God but only that he qu...estioned Satan. So the text continues, "The Lord said to Satan: Where do you come from?" Note here that the Lord does not say to him, "What are you doing?" or "Where are you?", but "Where do you come from?" This is because those deeds themselves which are administered by the demons sometimes arise from divine will when he punishes the wicked and tries the good through them. But the intention of the demons is always evil and hostile to God and so Satan is asked, "Where do you come from?" because his intention from which the totality of his act proceeds is hostile to God's.
One should note that to speak can be taken in two ways for sometimes it refers to the interior concept of the heart; sometimes to the term by which this kind of concept is expressed to another. In the first way, God's act of speaking is eternal and it is nothing other than to generate the Son who is his own Word. In the second way, God speaks some things in time, yet in diverse ways according to what corresponds to those with whom he speaks. For God spoke at times with men who have corporeal senses with a corporeal sound formed in some created subject, like the voice which said at the baptism and transfiguration of Christ, "This is my beloved Son." (Matt. 3:17; 17:5) Sometimes he has spoken through an imaginary vision as one reads so often in the Prophets. Sometimes through intellectual expression, and God should be understood to have spoken in this way with Satan insofar as he made him understand that the things which he did are seen by God.
Therefore, just as in God's act of speaking to Satan he informs Satan of something, so Satan answering God certainly does not inform God of anything but makes Satan understand that everything which is his is open to divine scrutiny. According to this way of speaking, the text says, "Satan answered the Lord: I have prowled about the earth and I have run through it." By the fact that the Lord says to Satan, "Where have you come from?", God examines the devil's intention and actions. By the fact that Satan answers, "I have prowled about the earth and I have run through it," as though giving an account of his actions to God, both statements serve the purpose of showing that everything which Satan does is subject to divine providence. In prowling over the earth, Satan shows his craftiness in seeking out those he can deceive. With this in mind, 1 Peter says, "Your adversary the devil prowls about like a roaring lion seeking someone to devour." (5:8) This prowling about fittingly shows his craftiness as the straight way shows simple justice. For the straight (right) line is "that whose mean does not exceed the extremes." Because therefore the action of the just does not diverge from its principle which is the will and from its intended end, straightness (rightness) is fittingly ascribed to the just. The work of the crafty, however, is to pretend one thing and to intend another. Thus what they show in their deed has its source in extremes when it agrees neither with the will nor the end. So the crafty are rightly said to prowl about and because of this Psalm 11 says, "The impious are prowling about." (v.9) One should know however that although the devil uses the study of his craftiness against everyone, good and wicked alike, the effect of his cunning takes place only in the wicked who are rightly called "the earth". For since man is composed of spiritual nature and earthly flesh, man's evil consists in the fact that after he has abandoned the spiritual goods to which he is ordered according to a mind endowed with reason, he clings to earthly goods which befit him according to his earthly flesh. Therefore wicked men are correctly called "earth" inasmuch as they follow earthly nature. Satan then not only prowls about but also runs through "earth" of this kind because he completes in them the effect of his malice. For the completion of his progress is designated in his running through them, just as God on the contrary is said to run through just men. So St. Paul says in 2 Cor., "I will live in them and walk along with them." (6:16)
There can also be another interpretation of this passage. There are three states of the living. Some are above the earth, that is, in heaven, like the angels and all the blessed. Still others are on the earth like all the men living in mortal flesh. Some are under the earth like the demons and all the damned. Satan neither prowls about nor runs through the first group because there can be no malice in the citizens of heaven, as there can be no evil of nature in the heavenly bodies. He prowls about with those who are in hell, but does not run through them because he has them totally subject to his malice, so it is not necessary that he use craftiness to deceive them. However he prowls about and runs through those who are on earth because he strives to deceive them by his craftiness and to draw some of them to his malice, who are especially designated by the term "earth", as I have already explained.
Source: Commentary on Job