The Lord discloses to the Israelites part of His purpose for giving them the Old Testament testimonies, statutes, and rules at that time:
“When your son asks you in time to come, ‘What is the meaning of the testimonies and the statutes and the rules that the LORD our God has commanded you?’ then you shall say to your son, ‘We were Pharaoh’s slaves in Egypt. And the LORD brought us out of Egypt with a mighty hand. And the LORD showed signs and wonders, great and grievous, against Egypt and against Pharaoh and all his household, before our eyes. And he brought us out from there, that he might bring us in and give us the land that he swore to give to our fathers. And the LORD commanded us to do all these statutes, to fear the LORD our God, for our good always, that he might preserve us alive, as we are this day. And it will be righteousness for us, if we are careful to do all this commandment before the LORD our God, as he has commanded us.’
“See, I have taught you statutes and rules, as the LORD my God commanded me, that you should do them in the land that you are entering to take possession of it. Keep them and do them, for that will be your wisdom and your understanding in the sight of the peoples, who, when they hear all these statutes, will say, ‘Surely this great nation is a wise and understanding people.’ For what great nation is there that has a god so near to it as the LORD our God is to us, whenever we call upon him? And what great nation is there, that has statutes and rules so righteous as all this law that I set before you today?”
But for those of us who live this side of Jesus’ resurrection, we know that the Old Testament Law was given to point us to Jesus, the One who fulfilled the Law.
“For since the law has but a shadow of the good things to come instead of the true form of these realities, it can never, by the same sacrifices that are continually offered every year, make perfect those who draw near.”
“For all who rely on works of the law are under a curse; for it is written, “Cursed be everyone who does not abide by all things written in the Book of the Law, and do them.” Now it is evident that no one is justified before God by the law, for “The righteous shall live by faith.” But the law is not of faith, rather “The one who does them shall live by them.” Christ redeemed us from the curse of the law by becoming a curse for us—for it is written, “Cursed is everyone who is hanged on a tree”—so that in Christ Jesus the blessing of Abraham might come to the Gentiles, so that we might receive the promised Spirit through faith.”
“Now before faith came, we were held captive under the law, imprisoned until the coming faith would be revealed. So then, the law was our guardian until Christ came, in order that we might be justified by faith. But now that faith has come, we are no longer under a guardian, for in Christ Jesus you are all sons of God, through faith.”