Both the ceremonial and the moral code of ten commandments are designed to bring us to Christ.
“Christ was the foundation of the whole Jewish economy. The death of Abel was in consequence of Cain’s refusing to accept God’s plan in the school of obedience to be saved by the blood of Jesus Christ typified by the sacrificial offerings pointing to Christ. Cain refused the shedding of blood which symbolized the blood of Christ to be shed for the world. This whole ceremony was prepared by God, and Christ became the foundation of the whole system. This is the beginning of its work as the schoolmaster to bring sinful human agents to a consideration of Christ the Foundation of the whole Jewish economy.” Selected Messages, Book 1, 233.
“All who did service in connection with the sanctuary were being educated constantly in regard to the intervention of Christ in behalf of the human race. This service was designed to create in every heart a love for the law of God, which is the law of His kingdom. The sacrificial offering was to be an object lesson of the love of God revealed in Christ—in the suffering, dying victim, who took upon Himself the sin of which man was guilty, the innocent being made sin for us.” Ibid.
“ ‘The law was our schoolmaster to bring us unto Christ, that we might be justified by faith’ (Galatians 3:24). In this scripture, the Holy Spirit through the apostle is speaking especially of the moral law. The law reveals sin to us, and causes us to feel our need of Christ and to flee unto Him for pardon and peace by exercising repentance toward God and faith toward our Lord Jesus Christ.” Ibid., 234.
“The law is an expression of God’s idea. When we receive it in Christ, it becomes our idea. It lifts us above the power of natural desires and tendencies, above temptations that lead to sin. ‘Great peace have they which love thy law: and nothing shall offend them’ (Psalm 119:165)—cause them to stumble.” Ibid., 235.