rights of kingship: See Deuteronomy 17:14–20.
He wrote them: Compare Exodus 24:4; Joshua 24:26.
Samuel placed the document before the Lord, likely in the tabernacle. This act showed that God would reward those who followed the covenant and punish those who broke it.