The Lord said to Moses, “Write down these words, for in accordance with these words I have made a covenant with you and with Israel.” Exodus 34.27 NET.
It was written down. We have it today. It's the Old Testament. Jesus caused his covenant to be written down as well. It's called the New Testament. That's why we spend so much time reading it.