How does keeping God's commandments relate to salvation?
Answered in 1 source
Keeping God's commandments is evidence of salvation, resulting from the new birth, not a means of earning it.
In the Reformed understanding, salvation is entirely the work of God, and obedience to His commandments is an outworking of that salvation. The new birth results in a transformed heart that longs to obey God’s statutes, as seen in 1 John 3:9, where those born of God do not live in a state of habitual sin. Thus, while believers strive to keep God's commandments, such actions are not what save them; rather, they reflect the fundamental change that occurs within a true believer. The work of grace manifests itself in a desire to live according to God's ways, affirming that our obedience is a response to His grace.
Commentary