Deuteronomy 17:14; Deuteronomy 17:18

14 “You are about to enter the land the LORD your God is giving you. When you take it over and settle there, you may think, ‘We should select a king to rule over us like the other nations around us.’
18 “When he sits on the throne as king, he must copy for himself this body of instruction on a scroll in the presence of the Levitical priests.