Exodus 24:4

4And aMoses wrote down all the words of the Lord. He rose early in the morning and built an altar at the foot of the mountain, and twelve bpillars, according to the twelve tribes of Israel.

Deuteronomy 31:24-26

24When Moses had finished cwriting the words of this law in a book to the very end, 25Moses commanded dthe Levites who carried the ark of the covenant of the Lord, 26Take this Book of the Law eand put it by the side of the ark of the covenant of the Lord your God, that it may be there for fa witness against you.
Copyright information for ESV