27 Where is boasting then? It is excluded. By what law? Of works? No, but by the law of faith. 28 Therefore we conclude that a man is justified by faith apart from the deeds of the law. (Romans 3:27–28, NKJV)
No one has room to boast before God of being a perfect keeper and therefore, of being justified by law. Everyone under the law of Moses sinned against it and were condemned as sinners by it (Rom. 3:19-20, 23). By the works or “deeds of the law,” no one is justified because all have sinned against it. It is the “law of faith” (the gospel), which is “apart from the deeds of the law,” that justifies sinners. Paul defines “works” in this context as “the deeds of the law” (the Greek text does not include the article, so literally the phrase here is “deeds of law”). Keeping law for justification demands sinless perfection. That is earning salvation. But, that avenue is forever impossible to us, since we have all sinned. None of us can earn our salvation. Scripture says we are justified by faith (v. 28). The gospel (the faith, Gal. 1:11, 23) produces personal faith (Rom. 1:16-17). Personal faith includes obedience, but an obedient faith is not “works” that earn salvation. Obedience is the action of trust in Jesus to save you when you obey Him (Heb. 5:8-9). When we trust and obey the gospel our only boast is in Jesus, not in ourselves (Lk. 17:10; Gal. 6:14).