How do we know that Moses represents the law and not the promise?
Answered in 1 source
Moses is seen as a representative of the law, which cannot enter the promised land, as he was not permitted to lead the people due to his disobedience (Numbers 20:12).
Moses embodies the law in that he received the commandments from God, establishing the old covenant characterized by 'do this and live.' However, Moses' prohibition from entering the promised land illustrates the law's limitations; it cannot bring us into the promises of God. As noted in Numbers 20:12, God's judgment on Moses for his disobedience points to the reality that the law cannot save or grant access to God's promises. Only through God's grace, represented in Joshua (Yahshua) who leads Israel into the promised land, do we see fulfillment of the promises made to Abraham. Thus, Moses, as a figure of the law, serves to show our need for Christ, who perfectly fulfills the law's demands.
Commentary