Then when he says, "But that in the law no man is justified with God, it is manifest," he shows the inability of the Law to snatch us from that curse, for it could not make one just. To show this he makes use of a syllogism in the second figure. Justice is by faith, but the Law is not by faith. Therefore the Law cannot justify. With respect to this, therefore:
First, he states the conclusion when he says, "But that in the law no one is justified;"
Secondly, the major premise (v. 11): "because the just man lives by faith;"
Thirdly, the minor (v. 12).
Therefore he says: I say that by the Law... a curse was introduced, and yet the Law cannot extricate one from that curse, because it is obvious that no one is justified before God by the Law, i.e., through the works of the Law. On this point it should be noted that those who rejected the Old Testament took occasion to do so from this word. Hence it must be said that no one is justified in the Law, i.e., through the Law. For through it came the knowledge of sin, as is said in Romans (3:20); but justification came not through it: "By the works of the law no flesh shall be justified" (Rom 3:20).
But against this, it is said in James (2:21): "Was not Abraham our father justified by works?" I answer that "to be justified" can be taken in two senses: either as referring to the execution and manifestation of justice, and in this way a man is justified, i.e., proved just, by the works performed; or as referring to the infused habit of justice, and in this way one is not justified by works, since the habit of justice by which a man is justified before God is not acquired but infused by the grace of faith. Therefore the Apostle says significantly, "with God," because the justice which is before God is interior in the heart, whereas the justice which is by works, i.e., which manifests that one is just, is before men. And it is in this sense that the Apostle says, with God: "For not the hearers of the law, but the doers are just before God" (Rom 2:13); "For if Abraham were justified by works, he hath whereof to glory, but not before God" (Rom 4:2). Thus, therefore, the conclusion of his reasoning is obvious, namely, that the Law cannot justify.
Then when he says, "because the just man lives by faith," he presents the major premise, which is based on scriptural authority, i.e., Habakkuk (2:4) restated in Romans (1:17) and Hebrews (10:38). Apropos of this point it should be noted that in man there is a twofold life; namely, the life of nature and the life of justice. Now the life of nature is from the soul; hence when the soul is separated from the body, the body continues but is dead. But the life of justice is through God dwelling in us by faith. Therefore the first way in which God is in the soul of man is by faith: "He that cometh to God must believe" (Heb 11:6); "That Christ may dwell by faith in your hearts" (Eph 3:17). Accordingly, we say that in the soul the first signs of life appear in the works of the vegetal soul, because the vegetal soul is the first to be present in a generated animal, as the Philosopher says. Similarly, because the first principle whereby God exists in us is faith, faith is called the principle of living. And this is what he means when he says, "the just man lives by faith." Furthermore, this is to be understood of faith acting through love.
Source: Commentary on Galatians