Having given his rebuke, the Apostle goes on to show the insufficiency of the Law, and the power of the faith.
First, he proves the insufficiency of the Law;
Secondly, he raises a question and answers it (v. 19).
Concerning the first, he does two things:
First, he proves the deficiency and insufficiency of the Law by appealing to what they experienced;
Secondly, by authority and reasons (v. 6).
As to the first, he does two things:
First, he proves his proposition by appealing to something they experienced;
Secondly, by using something he himself experienced (v. 5).
With respect to the... first, he does two things:
First, he discusses the gift they have received;
Secondly, the defect into which they have fallen (v. 3).
He discusses the gift they received by asking them from whom they received it. Hence, presupposing that they accepted the gift, he interrogates them and asks: Although you have been bewitched and are foolish, nevertheless you are not so deluded that you cannot explain to me something very obvious. Hence he says, "This only would I learn of you," because this by itself is enough to prove my point; namely, it is evident that you have received the Holy Spirit. I ask, therefore, "Did you receive the Spirit by the works of the law or by the hearing of faith?"
To elucidate this, it should be noted that in the early Church, by God's providence, in order that the faith of Christ might prosper and grow, manifest signs of the Holy Spirit took place in the hearers immediately after the apostles preached the faith. Accordingly, it is said of Peter in Acts (10:44): "While Peter was yet speaking these words, the Holy Spirit fell on all them that heard the word." The Galatians, too, openly received the Holy Spirit at Paul's preaching. The Apostle therefore asks them: Whence did they obtain the Holy Spirit? For it is obvious that it was not through the works of the Law, because, since they were Gentiles, they did not have the Law before they received the Holy Spirit. Therefore they had the Holy Spirit, i.e., the gifts of the Holy Spirit, by the hearing of faith: "For you have not received the spirit of bondage again in fear," which was given in the Law (for the Law was given amid tremors), "but you have received the spirit of adoption of sons," (Rom 8:17). Therefore, if the power of the faith could do this, it is vain to seek something else by which we are saved, because it is more difficult to make the unjust just than to preserve the just in their justice. Hence if the faith had made the unjust Gentiles just without the Law, no doubt it could without the Law keep them just. Great, therefore, was the gift they had received through faith.
Source: Commentary on Galatians