Above, he showed that he scorned past gains for the sake of Christ, that is, in order to know and win Christ; here he intends to explain these things: first, how he desires to gain Christ and be found in Him by justice; secondly, by enduring sufferings (3:10). In regard to the first, he does two things: first, he shows which justice he abandoned; secondly, which one he now seeks (3:9).
It should be noted that justice is taken sometimes as the special virtue through which a man fulfills what is right in matters pertaining to life in society, in the sense that it directs a person in this matter...; for temperance deals with one's own internal passions, but justice deals with another person. In another way justice is a general virtue, inasmuch as a man observes the law for the common good. This is the sense in which it is used in Scripture for the observance of the divine law: "I have done what is just and right," i.e., the law (Ps. 119:121), which he obeyed out of love, as though moved by his own initiative. In this way it is a virtue, but not if he is moved in some other way, such as by an external cause or for the sake of gain or because of punishments, where to obey might be personally displeasing. According to this there are two kinds of justice: one is moral justice; the other is legal justice, which makes one obey the law not from love but from fear. Therefore he says, not having a righteousness of my own, based on law, because as Augustine says: "The slight difference between the Law and the Gospel is fear and love"; "For you did not receive the spirit of slavery to fall back into fear, but you have received the spirit of sonship" (Rom. 8:15).
But if your righteousness is your own, how is it from the Law? I answer that it is indeed mine, because I accomplish such works with human power without the inward vesture of sanctifying grace; but it is from the Law as from the one teaching. Or, it is mine to presume to obey it by myself: "Moses writes that the man who practices the righteousness which is based on the law shall live by it" (Rom. 10:5).
Concerning this justice which he seeks, he states three things, namely, the method of acquiring it; its author; and its fruit. The method is that it is not obtained except by faith in Christ: "Since we are justified by faith, we have peace with God through our Lord, Jesus Christ" (Rom. 5:1); "The righteousness of God through faith in Jesus Christ for all who believe" (Rom. 3:22). For the author is God and not man: "It is God who justifies" (Rom. 8:33); "And to one who does not work but trusts him who justifies the ungodly, his faith is reckoned as righteousness" (Rom. 4:5). Therefore he says, the righteousness from God that depends on faith: "The Holy Spirit whom God has given to those who obey him" (Acts 5:32).
Source: Commentary on Philippians