The first mention of "law" in the Bible will give us a clue:
"Because that Abraham obeyed my voice, and kept my charge, my commandments, my statutes, and my laws." (Genesis 26: 5)
Notice that this verse precedes the rollout of the Big Ten.
In what wayspecifically was Abram obedient to God?
"And he believed in the LORD; and he counted it to him for righteousness." (Genesis 15: 6)
God wants us to trust Him, and from Genesis 12 until his passing, Abram (then Abraham) followed God's lead. He trusted the LORD to take care of him in every way, and God never wavered in His promise.
So, the law which we need to be thinking about is. . .the law of faith?
"Where is boasting then? It is excluded. By what law? of works? Nay: but by the law of faith." (Romans 3: 27)
There is another law, one which rests on faith, which supercedes the law of Moses:
"1There is therefore now no condemnation to them which are in Christ Jesus, who walk not after the flesh, but after the Spirit. 2For the law of the Spirit of life in Christ Jesus hath made me free from the law of sin and death." (Romans 8: 1-2)