Then the Lord said to Moses, “Write this as a remembrance in a book and recite it in the hearing of Joshua: I will utterly blot out the memory of Amalek from under heaven.”
And Moses wrote down all the words of the Lord. He rose early in the morning, built an altar at the foot of the mountain, and set up twelve pillars, corresponding to the twelve tribes of Israel.
Then he took the book of the covenant and read it in the hearing of the people, and they said, “All that the Lord has spoken we will do, and we will be obedient.”
He said, “I hereby make a covenant. Before all your people I will perform marvels, such as have not been done in all the earth or in any nation, and all the people among whom you live shall see the work of the Lord, for it is an awesome thing that I will do with you.
Then Moses wrote down this law and gave it to the priests, the sons of Levi, who carried the ark of the covenant of the Lord, and to all the elders of Israel.