He also stripped himself of his garments, etc. These are clearly the acts of a furious and insane person, to strip oneself, fall down vexed, and lie naked on the ground all day and night. Yet, even through the wrath of such a person, the divine power has something mystical to say for those who hear and discern. For through Balaam, who was of a contrary mind to Him, He foretold so many mysteries beforehand, and through the impious persecutor Caiaphas, He gave the secrets of His saving passion to be prophesied, and through a mute animal speaking with a human voice, He forbade the prophet's folly...; and He Himself through the possessed Saul, in the presence of Samuel and the other prophets, revealed whatever mystical things He wished, so that the innocent David might seize the path to salvation; so the madness of the pursuing Saul might be made evident to all everywhere; and finally, it might be understood how much the presence of the perfect confers on the desires of the humble, which could even lift the proud by the power of prophecy; and thus the future fate of the persecuting people might be marked, who by their hatred deserved to strip Christ of the ornament of His unique kingdom, to fall from the state of the ancient righteousness, advancing amidst the prosperity and adversity of the Church, naked of both heavenly and earthly glory, miserable and adhering only to worldly desires, and among these to hold the writings of prophecy, which would support the faith of the Church by word alone. And it is well said that he prophesied with the others before Samuel; for even now the infidel Synagogue meditates and reads the sayings of the Law and the prophets with the Church; yet the Synagogue lacks spiritual understanding, while the Church knows all those things to be understood about the Lord.
Source: Commentary on Samuel