Then when he says, Therefore, he concludes to two effects of grace: the first is that it makes one abstain from sin; the second is that it makes one do good works (v. 3b).
First, therefore, he says: From the fact that when you were without grace, you ran after sin rapidly, I want you to understand that if you had possessed grace, this would not have happened to you, for no one speaking by the Spirit of God says "Jesus be cursed," i.e., blasphemes Jesus: "Every spirit which does not confess Jesus is not of God" (1 Jn 4:3). It should be noted that above he said that the gravest sin is blasphemy..., which is avoided through grace; hence the other lesser sins are avoided. By saying, anathema to Jesus, any mortal sin can be understood. For "anathema" signifies separation. It is derived from "ana," which means "above" and "thesis," which is a "placing"; as it were, "placed above," because in olden days things separated from men's use were hung up in temples or in public places. But every mortal sin separates from Jesus, as it says in Is (59:2): "Your iniquities have made a separation between you and your God." Therefore, whoever sins mortally says in his heart or with his mouth, anathema, i.e., separation from Jesus. Therefore, no one speaking by the spirit of God says anathema to Jesus, because no one through the spirit of God sins mortally because, as it says in Wis (1:5): "The holy spirit of discipline will flee from deceit."
But according to this it seems that whoever had the Holy Spirit cannot sin mortally; further, it says in 1 John (3:9): "No one born of God commits sin, because God's seed abides in him." The answer is that as far as the Spirit of God is concerned, man does not commit sin but rather is drawn away from sin. But he can sin through a defect of the human will which resists the Holy Spirit, as it says in Ac (7:51): "You always resist the Holy Spirit." For by the indwelling Holy Spirit the ability to sin is not taken away totally from the free will in this life. Therefore, it is significant that the Apostle did not say: "No one having the Holy Spirit," but no one speaking by the Spirit of God.
Then when he says, and no one, he mentions the second effect of grace, namely, that without it man cannot perform a good work. He says, therefore: And no one can say "Jesus is Lord" except by the Holy Spirit. But against this seems to be the fact that by the Holy Spirit man is introduced to the kingdom of heaven, as it says in Ps 143 (v. 10): "Your good spirit leads me along the right path." The Lord, however, says: "Not everyone who says, Lord, Lord, will enter the kingdom of heaven" (Matt 7:21). Therefore, not everyone who says "Lord Jesus," says it in the Holy Spirit. The answer is that saying something in the Holy Spirit can be understood in two ways: in one way in the Holy Spirit moving but not possessed. For the Holy Spirit moves the hearts of certain men to speak, although He does not dwell in them, as it says in John (11:49) that in predicting the utility of the Lord's death Caiaphas did not speak from himself but through the Spirit of prophecy. Balaam also predicted many true things, but moved by the Holy Spirit, as it says in Numbers (chaps. 23 & 24), although he did not possess Him. According to this, therefore, it must be understood that no one can say anything true, unless moved by the Holy Spirit, Who is the Spirit of truth, of Whom it is said in John (16:13): "When the Spirit of truth comes, he will guide you into all the truth." Hence Ambrose says in a Gloss: "Every truth by whomsoever spoken is from the Holy Spirit." This applies especially to matters of faith, which are had by a special revelation of the Holy Spirit. Among these is the fact that Jesus is Lord of them all. Hence it says in Ac (2:36): "Let all the house of Israel know assuredly that God has made him both Lord and Christ, this Jesus whom you crucified." In another way someone speaks in the Holy Spirit moving and possessed. And according to this, what is said here can be verified, but in such a way that "to speak" refers not only to the mouth but also to the heart and the deed. For something is said by the heart as in Ps 14 (v. 1): "The fool says in his heart, 'There is no God.'" But something is said by deed, inasmuch as someone by an external work manifests his thought. No one, therefore, except by having the Holy Spirit can say: "Jesus is Lord," in such a way that he confesses this not only by the mouth but also with the heart reveres Him as Lord and in work obeys Him as Lord.
Therefore, from the foregoing words we can consider three things about grace. First, that without it man cannot avoid sin, as it says in Ps 94 (v. 17): "If the Lord had not been my help, my soul soon would have dwelt in hell." Secondly, that through it sin is avoided, as it says in 1 John (3:9): "No one born of God commits sin." Thirdly, that without it a man cannot do good, as it says in John (15:5): "Apart from me you can do nothing."
Source: Commentary on 1 Corinthians