Deuteronomy 17:14; Deuteronomy 17:18

14 "When you come to the land which the LORD your God gives you, and you possess it and dwell in it, and then say, 'I will set a king over me, like all the nations that are round about me';
18 "And when he sits on the throne of his kingdom, he shall write for himself in a book a copy of this law, from that which is in the charge of the Levitical priests;