Exodus 21–23, The basic principles of morality and righteousness.
After having given the ten statements (or ten commandments), which forms the basic cornerstone of the whole Torah and out of which all the other Torah commands branch, Elohim now expands on these ten basic principles in chapters 21 to 23. This passage contains the basics of how to love YHVH Elohim and one’s neighbor as oneself (the golden rule).
Exodus chapters 20 to 23 contain the basic laws and principles for a society to function smoothly at a high level spiritually. They form the foundation of societal governance, which the new nation of Israel needed in order to survive spiritually (in right relationship with Elohim) and to survive physically and morally as a holy or set-apart nation surrounded by heathen nations.
It is also interesting to note that YHVH did not give Israel the 613 Torah laws at once, but introduced them to his people little-by-little on an as-need basis and so as not to overwhelm them to quickly. He led and taught the children of Israel as a loving and patient parent teaches their child educating them in small doses as the child is able to receive it so as not to overwhelm them. This is the same method that the Spirit of Elohim use to this day to teach new disciples of Yeshua about the Truth of the Bible little-by-little and step-by-step. In this same manner, wise and godly Bible teachers will teach their disciples the principles of godly living.
YHVH started with the ten statements of Exodus 20, then expanded these ten into the basic laws of chapters 21 through 23, and he then goes from there instructing the Israelites in ways of righteous living. This teaches us another truth about how YHVH operates with his human children: He reveals himself to those who seek him slowly, methodically over time. He and his ways are too transcendently great and expansive for the mind of man to encompass all at once.
For my thoughts are not your thoughts, neither are your ways my ways, saith YHVH. For as the heavens are higher than the earth, so are my ways higher than your ways, and my thoughts than your thoughts. (Isa 58:8–9)
This measured method of divine revelation is exactly how the apostles chose to reveal YHVH’s truth to the new Gentile converts in Acts 15—little by little. First they heard the gospel message and came to Messiah, then they were given basic rules to follow in order to enter into the fellowship of the saints, then they would learn the laws of Moses over time each Sabbath in the instructional setting of the local synagogue.
Learning the divinely revealed truths of Elohim and his ways of righteousness as found in the Bible is a step-by-step process that will last a lifetime.