The law doesn’t call for works that we get rewarded for by God, but the law calls for obedience in faith. In Romans 9:30-32 we see how the believers were not able to attain righteousness because the pursued it not by faith but as if were works. So the law is based on faith in God’s grace – this is how the ten commandments begin. In Exodus 20:1-3, the first thing that God commands is that we remember what he has done for us, to remember his mighty works of salvation, his love and grace as he lead us out of slavery from sin to freedom. And because he demonstrated his love for us, proving that he is committed to do even the impossible to restore us back to him, he is now asking us to trust in him completely and have hope in him and seek no other.