God’s Law, his morals, have always existed. One morning in Sunday school the teacher said, “There was no law before Moses”. This was my response.
Genesis 26:5 “Because that Abraham obeyed my voice, and kept my charge, my commandments, my statutes, and my laws.”
I could have also asked him what Moses was teaching the people two chapters before the commandments were written down by God. The Law was finally written down for a specific reason. Study to show yourse approved.