He said, “Take this Book of the Teachings and put it beside the Ark of the Agreement with the Lord your God. It must stay there as a witness against you.
The only things inside the Ark were two stone tablets that Moses had put in the Ark at Mount Sinai. That was where the Lord made his agreement with the Israelites after they came out of Egypt.
So Moses wrote down these teachings and gave them to the priests and all the elders of Israel. (The priests are the sons of Levi, who carry the Ark of the Agreement with the Lord.)
Samuel explained the rights and duties of the king and then wrote them in a book and put it before the Lord. Then he told the people to go to their homes.