1st Samuel 15:22 Behold, to obey is better than sacrifice, and to hearken than the fat of rams. 23 For rebellion is as the sin of witchcraft, and stubbornness is as iniquity and idolatry.
[Patriarchs & Prophets pp 334] The people whom God had promised to bless and multiply, to make a power in the earth, and through whom He was to reveal the knowledge of His will—the people whom He was to make the keepers of His law—this very people Satan was seeking to keep in obscurity and bondage, that he might obliterate from their minds the remembrance of God. When the miracles were wrought before the king, Satan was on the ground to counteract their influence and prevent Pharaoh from acknowledging the supremacy of God and obeying His mandate. Satan wrought to the utmost of his power to counterfeit the work of God and resist His will.
The only result was to prepare the way for greater exhibitions of the divine power and glory, and to make more apparent, both to the Israelites and to all Egypt, the existence and sovereignty of the true and living God. God delivered Israel with the mighty manifestations of His power, and with judgments upon all the gods of Egypt. “He brought forth His people with joy, and His chosen with gladness: ... that they might observe His statutes, and keep His laws.” Psalm 105:43-45. He rescued them from their servile state, that He might bring them to a good land—a land which in His providence had been prepared for them as a refuge from their enemies, where they might dwell under the shadow of His wings.
He would bring them to Himself, and encircle them in His everlasting arms; and in return for all His goodness and mercy to them they were required to have no other gods before Him, the living God, and to exalt His name and make it glorious in the earth. During the bondage in Egypt many of the Israelites had, to a great extent, lost the knowledge of God's law, and had mingled its precepts with heathen customs and traditions. God brought them to Sinai, and there with His own voice declared His law.
Deuteronomy 33:2 And he said, The Lord came from Sinai, and rose up from Seir unto them; he shined forth from mount Paran, and he came with ten thousands of saints: from his right hand went a fiery law for them. 3 Yea, he loved the people; all his saints are in thy hand: and they sat down at thy feet; every one shall receive of thy words.
May God add His blessing to the study of His word. "Good night" and God bless!