Then when he says, "You did run well. Who hath hindered you that you should not obey the truth?" he deals with the obstacle to standing. First, he mentions the obstacle; Secondly, he teaches its removal (v. 8).
The obstacle to their standing fast was great and harmful, for the harmfulness of anything is reckoned according to the greater good it hinders. Therefore, when someone is kept from many spiritual goods, it is an indication that he is faced with a great obstacle. Accordingly, in order to show them that they have a great obstacle, he reminds them of the spiritual goods they have lost, w...hen he says: "You did run well," namely, by means of the works of faith formed by charity, which incites one to run: "I have run the way of thy commandments, when thou didst enlarge my heart" (Ps 118:32). And this did indeed apply to you formerly; but while you were thus running, you came upon an obstacle. Therefore he says: "Who hath bewitched you?" (This has been discussed already in Chapter 3, hence we pass over it now).
Therefore, who has bewitched you, i.e., "hindered the truth," namely, of the Gospel, "that you should not obey it?" This is appropriately said: for obedience is the application of the will to the edict of the one who commands. That is why faith is a science of the will and of the understanding. It is suitable, therefore, for the will to obey the faith. But this is done by willing to believe that the grace of Christ is sufficient for salvation without the legal observances.
Source: Commentary on Galatians