Second, when he says, for if Abraham, he answers the question he had raised.
He does two things.
First, he shows that Abraham did not obtain justification through circumcision and the other works of the law, but rather through faith;
second, he commends his faith, at who against hope (Rom 4:18).
In regard to the first he does two things.
First, he explains his position with a reason based on divine acceptance;
second, by reason of God's promise, at for not through the law (Rom 4:13).
In regard to the first he does three things.
First, he proposes a conditional statement;
second, he di...sproves the consequent, at for what says the Scripture?
Third, he proves the conditional statement, at as David also.
In regard to the first the Apostle intends to argue in the following manner: if Abraham were justified from works of the law, he would have no glory with God; therefore, he was not justified from works.
Hence, he presents the conditional statement, saying: it has been asked what Abraham found in virtue of bodily circumcision, and it is obvious that he did not find himself justified from works of the law, such that his justice consisted in the works of the law; he has glory, namely, before men, who see the outward works, but not before God, who sees in secret: the Lord looks on the heart (1 Sam 16:7); so let no one boast of men (1 Cor 3:21). Hence it is written against some that they loved the praise of men more than the praise of God (John 12:43).
Against this one might object that becoming accustomed to outward works generates an inward habit, according to which a man's heart is also well disposed and so made ready to perform well and take pleasure in good works, as the Philosopher teaches in Ethics II.
The answer is that this takes place in human justice, through which man is ordained to the human good. For the habit of this justice can be acquired through human works, but the justice which obtains glory before God is ordained to the divine good, namely future glory, which exceeds human ability, as is said: it has not arisen in the heart of man what God has prepared for those who love him (1 Cor 2:9).
Consequently, a man's works are not proportioned to causing the habit of this justice; rather, a man's heart needs first to be justified inwardly by God, so that he can perform works proportioned to divine glory.
Source: Commentary on Romans