Deuteronomy 17:14; Deuteronomy 17:18

14 "When you come to the land that the LORD your God is giving 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 around 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, approved by the Levitical priests.