But who is the author? Certainly the Holy Spirit, for it is not you who speak, but the Spirit of your Father speaking through you. Something like this is expressed by Paul in 2 Corinthians (13:3): "Do you want proof that Christ is speaking in me?" But does not this make them seem possessed? It should be noted that every action proceeding from two causes, one of which is the principal actor and the second instrumental, should be named from the more principal. But they were acting instrumentally, the Holy Spirit principally; therefore, the entire action should be named from the Holy Spirit. It i...s also well to consider that sometimes a spirit moves by disturbing the reason, sometimes by strengthening it. Hence this is the difference between a movement of the devil and of the Holy Spirit. For man is not master except through reason, by which he is free; hence when a man is not moved according to reason the movement is one of possession. When he is moved with reason, he is said to be moved by the Holy Spirit. For the movement by the devil disturbs reason. But the apostles, although moved by the Holy Spirit, retained their reason; therefore, they spoke from themselves and not as one possessed. Hence he brings them to prophetic truth, as it says in 2 Peter (1:19): "We have the prophetic word made more sure."
Source: Commentary on Matthew