Philippians 3:9-10 And be found in him, not having mine own righteousness, which is of the law, but that which is through the faith of Christ, the righteousness which is of God by faith: That I may know him, and the power of his resurrection, and the fellowship of his sufferings, being made conformable unto his death;
The word righteousness means the state in which we are approved by God. Righteousness is our integrity, virtue, purity of life, rightness, correctness of thinking, feeling and acting. Paul tells us in this passage that we are not righteous because we have followed the law but that we are righteous and thus acceptable to God because of our faith. By following the law, our outward actions are the things that are judged. However, it is our faith in Christ that dictates to us that we are accountable to God for our thoughts and feelings.