The law of God existed before man was created. The angels were governed by it. Satan fell because he transgressed the principles of God's government. After Adam and Eve were created, God made known to them His law. It was not then written, but was rehearsed to them by Jehovah. SR 145.1
The Sabbath of the fourth commandment was instituted in Eden. After God had made the world and created man upon the earth, He made the Sabbath for man. After Adam's sin and fall nothing was taken from the law of God. The principles of the Ten Commandments existed before the fall and were of a character suited to the condition of a holy order of beings. After the fall the principles of those precepts were not changed, but additional precepts were given to meet man in his fallen state. SR 145.2
A system was then established requiring the sacrificing of beasts, to keep before fallen man that which the serpent made Eve disbelieve, that the penalty of disobedience is death. The transgression of God's law made it necessary for Christ to die a sacrifice, and thus make a way possible for man to escape the penalty, and yet the honor of God's law be preserved. The system of sacrifices was to teach man humility, in view of his fallen condition, and lead him to repentance and to trust in God alone, through the promised Redeemer, for pardon for past transgression of His law. If the law of God had not been transgressed, there never would have been death, and there would have been no need of additional precepts to suit man's fallen condition. SR 145.3
Adam taught his descendants the law of God, which law was handed down to the faithful through successive generations. The continual transgression of God's law called for a flood of waters upon the earth. The law was preserved by Noah and his family, who for right-doing were saved in the ark by a miracle of God. Noah taught his descendants the Ten Commandments. The Lord preserved a people for Himself from Adam down, in whose hearts was His law. He says of Abraham, He “obeyed My voice, and kept My charge, My commandments, My statutes, and My laws.” Genesis 26:5. SR 146.1
The Lord appeared unto Abraham, and said unto him: SR 146.2
“I am the Almighty God; walk before Me, and be thou perfect. And I will make My covenant between Me and thee, and will multiply thee exceedingly.” Genesis 17:1, 2. “And I will establish My covenant between Me and thee and thy seed after thee in their generations, for an everlasting covenant, to be a God unto thee, and to thy seed after thee.” Genesis 17:7. SR 146.3
He then required of Abraham and his seed, circumcision, which was a circle cut in the flesh, as a token that God had cut them out and separated them from all nations as His peculiar treasure. By this sign they solemnly pledged themselves that they would not intermarry with other nations, for by so doing they would lose their reverence for God and His holy law, and would become like the idolatrous nations around them. SR 146.4
By the act of circumcision they solemnly agreed to fulfill on their part the conditions of the covenant made with Abraham, to be separate from all nations and to be perfect. If the descendants of Abraham had kept separate from other nations, they would not have been seduced into idolatry. By keeping separate from other nations, a great temptation to engage in their sinful practices and rebel against God would be removed from them. They lost in a great measure their peculiar, holy character by mingling with the nations around them. To punish them, the Lord brought a famine upon their land, which compelled them to go down into Egypt to preserve their lives. But God did not forsake them while they were in Egypt, because of His covenant with Abraham. He suffered them to be oppressed by the Egyptians, that they might turn to Him in their distress, choose His righteous and merciful government, and obey His requirements. SR 147.1
There were but a few families that first went down into Egypt. These increased to a great multitude. Some were careful to instruct their children in the law of God, but many of the Israelites had witnessed so much idolatry that they had confused ideas of God's law. Those who feared God cried to Him in anguish of spirit to break their yoke of grievous bondage and bring them from the land of their captivity, that they might be free to serve Him. God heard their cries and raised up Moses as His instrument to accomplish the deliverance of His people. After they had left Egypt, and the waters of the Red Sea had been divided before them, the Lord proved them to see if they would trust in Him who had taken them, a nation from another nation, by signs, temptations, and wonders. But they failed to endure the trial. They murmured against God because of difficulties in the way and wished to return again to Egypt. SR 147.2