"These laws were to be recorded by Moses, and carefully treasured as the foundation of the national law, and, with the ten precepts which they were given to illustrate, the condition of the fulfillment of God's promises to Israel. PP 311.3"
"And he took the book of the covenant, and read in the audience of the people: and they said, All that the Lord hath said will we do, and be obedient."
The EGW passage refers to the recording of laws and their connection to God's promises, which is directly linked to the covenant established in Exodus 24:7.
"Take this book of the law, and put it in the side of the ark of the covenant of the Lord your God, that it may be there for a witness against thee."
Both passages refer to the recording and preservation of the law, although Deuteronomy 31:26 specifies placing it beside the ark, while EGW speaks more generally about its role as the foundation of national law.
"The message was now given them from Jehovah: “Behold, I send an Angel before thee, to keep thee in the way, and to bring thee into the place which I have prepared. Beware of Him, and obey His voice, provoke Him not; for He will not pardon your transgressions: for My name is in Him. But if thou shalt indeed obey His voice, and do all that I speak; then I will be an enemy unto thine enemies, and an adversary unto thine adversaries.” During all the wanderings of Israel, Christ, in the pillar of cloud and of fire, was their Leader. While there were types pointing to a Saviour to come, there was also a present Saviour, who gave commands to Moses for the people, and who was set forth before them as the only channel of blessing. PP 311.4"
"Behold, I send an Angel before thee, to keep thee in the way, and to bring thee into the place which I have prepared."
The EGW passage directly quotes Exodus 23:20.
"Upon descending from the mountain, “Moses came and told the people all the words of the Lord, and all the judgments: and all the people answered with one voice, and said, All the words which the Lord hath said will we do.” This pledge, together with the words of the Lord which it bound them to obey, was written by Moses in a book. PP 311.5"
"And Moses came and told the people all the words of the Lord, and all the judgments: and all the people answered with one voice, and said, All the words which the Lord hath said will we do."
The EGW passage directly quotes Exodus 24:3.