Then when he says, for Moses wrote, he proves the truth of those things about which the Jews were ignorant, namely, that God's justice is more perfect than that of the law; and this he shows on the authority of Moses, the lawgiver of the old law.
First, therefore, he shows by his words the condition of legal justice;
second, he shows the condition of the justice of faith, at but the justice which is of faith.
First, therefore, he says: I have correctly distinguished human justice from God's justice, for Moses wrote that the man who practices the justice which is based on the law shall live ...by it, where my text has: keep my laws and judgments, which if a man do, he shall live in them and: they cast away my judgments, which if a man do, he shall live in them (Ezek 20:13), namely because by observing the law a man obtained the advantage of not being killed as a transgressor of the law: a man who has violated the law of Moses dies without mercy (Heb 10:28); everyone who curses his father or his mother shall be put to death (Lev 20:9), and so on for the other commandments.
We can also say that by observing the law a man was regulated in the present life, for the law promised temporal goods and commanded things which were bodily regulations imposed until a time of reformation (Heb 9:10).
But all this seems contrary to what the Lord answered the person asking him: what good deed must I do to have eternal life? (Matt 19:16ff.); for he answered: if you would enter life, keep the commandments (Matt 19:17). Hence, a Gloss on Romans 5:20: law entered in, says that justice based on the law conferred not only temporal benefits but also eternal life.
But Christ's words must be understood according to the spiritual sense of the law, a sense which refers to faith in him. But Paul's words refer to the inward sense of the law according to which the law makes no mention of eternal life.
Source: Commentary on Romans