After Blessed Job's prosperity has been enumerated, his adversity is placed. First, their cause is introduced. Lest anyone think that the adversities of just men happen apart from divine providence and that because of this might think human affairs are not subject to divine providence, he first explains how God has care of human affairs and governs them. This is set forth in symbol and allegory according to the usual practice of Holy Scripture, which describes spiritual things using the images of corporeal things, as is clear in Isaiah, "I saw the Lord sitting upon a high and lofty throne," (6...:1), in the beginning of Ezekiel and in many other places. Now, even though spiritual things are conceived using the images of corporeal things, nevertheless what the author intends to reveal about spiritual things through sensible images do not pertain to the mystical sense, but to the literal sense because the literal sense is what is first intended by the words whether properly speaking or figuratively.
But one should know that divine providence governs things with such an order that lower things are ordered through higher things. For bodies which are generated and corrupted are subject to the motion of the heavenly bodies and in the same way lower reasoning spirits united to mortal bodies, namely, souls are directed through higher incorporeal spirits. The tradition of the church teaches that among incorporeal spirits some are good ones, who guarding the purity in which they were created, enjoy divine glory and never turn from the will of God. These spirits are sometimes called angels, i.e. messengers in the Scriptures because they announce divine things to men. Sometimes they are called sons of God in as much as they are made like to God by participation in his glory. But there are also some spirits which are evil but not by nature or creation, because God is the author of the nature of each and the supreme good cannot be the cause of anything but good things, but these spirits are evil through their own fault. Spirits of this kind are called demons in the Scriptures, and their leader is called the devil, as though he fell from on high (deorsum cadens). He is also called Satan, which means adversary. Therefore both kinds of spirits move men to do things; the good to good deeds, the evil to wicked deeds. Just as men are moved by God through these spirits mentioned above, so too those things which are done by men are said in the Scriptures to be referred to divine consideration by the mediation of the same spirits. Thus to show that both the good and evil things which men do are subject to divine judgment, the text continues, "Now on a certain day when the sons of God came to assist in the presence of the Lord, Satan also was among them."
One should know that the angels who are called here "sons of God" are said to assist in the presence of the Lord in two ways: In the first way in as much as God is seen by them as Daniel says, "A thousand thousands ministered before him and ten thousand thousands assisted in his presence" (7:10); in another way in as much as the angels themselves and their acts are seen by God. For those who "assist in the presence of a Lord" both see him and are seen by him. Therefore in the first way it only befits those angels to assist in God's presence who are the blessed ones enjoying the divine vision. Nor is this fitting for all of these but only for those who exist among the higher angels, who enjoy the divine vision more intimately and do not go forth according to the opinion of Dionysius to perform exterior ministries. For this reason, the angels assisting in the presence of God are distinguished from the ministering angels in the text of Daniel already cited. In the second way, however, it is fitting not only for the good angels, but also the wicked ones and even men to assist in the presence of God, because whatever is done by them is subject to the divine gaze and examination. Because of this the text says next, "when the sons of God came to assist in the presence of the Lord, and Satan also was among them." Although those things which are in the care of the good and the bad angels are continually subject to the divine sight and examination, and so the sons of God always come to assist in the presence of God and Satan is among them, nevertheless the text says, "on a certain day" according to the usage of Scripture which sometimes designates things above time through things which are in time. For example, at the beginning of the book of Genesis, God is said to have spoken some things on the first or the second day even though his act of speaking is eternal, because what is said by him happened in time. So now, since the deed about which the author now treats took place in a determined time, those who do this deed are said to assist in the presence of God on a certain day even though they never cease assisting in the presence of God.
One should also consider that those things which are done through good angels are referred to the judgment of God in a different way than those things which are done by the wicked angels. For the good angels intend that the things which they do be referred to God. So the text says that the sons of God "came to assist in the presence of the Lord," as if by their own movement and intention they subjected everything to the divine judgment. But, the wicked angels, however, do not intend that the things which they do are referred to God, but the fact that whatever they do is subject to divine judgment happens against their will. Therefore, the text does not say that Satan came to assist in the presence of the Lord, but only that, "Satan was among them." He is said to be "among them" both because of the equality of their nature and also to convey indirectly that evil things are not done from a principal intention [of God's] but comes upon good men almost by accident.
Source: Commentary on Job