Therefore whenever the evil spirit of God seized Saul, etc. The sense is clear from the preceding, and it is suitable not only to the faithful Jews but also to us. For it must be that whenever any temptation of the evil spirit seizes our mind and turns it away from the tranquility of its state, whoever of the spiritual brothers is present should bring to our memory the humility of the Lord's passion, earnestly exhorting us; because He who was innocent and just sustained the punishment of the cross for us voluntarily, leaving indeed an example that following His steps, we may act innocently in ...prosperity and patiently in adversity. Thus it will come to be that, refreshed by brotherly consolation as if by David's playing of the harp, we may bear it more lightly. For David always signifies our Redeemer, but sometimes in himself, sometimes in his members: and with the departure of the dire spirit's influence, immediately the grace of the Holy Spirit succeeding will enlighten us. But if it moves anyone why the Spirit is called both of God and evil; let him know that it is called of God indeed because of His most just permission, but evil because of the most wicked will of that spirit. For God uses even evil spirits for the testing of some, for punishment or correction, or even for the maintenance of good things. For testing, indeed, as the Lord tested blessed Job by allowing Satan; for punishment, as the lying spirit deceived King Ahab to perish in battle because of his preceding crimes by the Lord's permission; for correction, as the Apostle handed over the sinner in Corinth to Satan (I Cor. V), that his spirit might be saved in the day of the Lord Jesus. Furthermore, for the preservation of virtues, as the same Apostle, lest he be exalted by the greatness of revelations, received an angel of Satan to buffet him (II Cor. XII). Josephus mentions this passage in his history of Antiquities: "And Saul was suddenly seized by certain passions and demons, bringing him suffocations and distress;" and a little later: "They ordered, he says, that when demons attacked and disturbed him, standing over his head, he should play the harp and sing hymns." For it is not to be thought that that harp, however sweetly sounding, could have had such great power as to drive away evil spirits; but the figure of the holy cross, and the very passion of the Lord which was sung, already then was breaking the audacity of the devil; just as the destroying angel of Egypt did not pass by because of the virtue of the blood placed on the doorposts (Exod. XII), but because that blood was a type: the place of the middle lintel, and of each doorpost, where it was anointed, expressed the very figure of the salutary cross. The angel passed by the houses of the Hebrews, seeing them marked, unharmed, by the divine foreknowledge, indicating the coming of Him in the flesh who would by His blood through the cross free us from eternal death.
Source: Commentary on Samuel