Deuteronomy 17:18

18 When he has taken the throne of his kingdom, he shall have a copy of this law written for him in the presence of the levitical priests.

Deuteronomy 17:18 In-Context

16 Even so, he must not acquire many horses for himself, or return the people to Egypt in order to acquire more horses, since the Lord has said to you, "You must never return that way again."
17 And he must not acquire many wives for himself, or else his heart will turn away; also silver and gold he must not acquire in great quantity for himself.
18 When he has taken the throne of his kingdom, he shall have a copy of this law written for him in the presence of the levitical priests.
19 It shall remain with him and he shall read in it all the days of his life, so that he may learn to fear the Lord his God, diligently observing all the words of this law and these statutes,
20 neither exalting himself above other members of the community nor turning aside from the commandment, either to the right or to the left, so that he and his descendants may reign long over his kingdom in Israel.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.