Deuteronomy 17:18-20

MKJV(i) 18 And it shall be, when he sits on the throne of his kingdom, he shall write a copy of this Law in a book from before the priests, the Levites. 19 And it shall be with him, and he shall read it all the days of his life, so that he may learn to fear Jehovah his God, to keep all the words of this Law, and these statutes, to do them, 20 so that his heart may not be lifted up above his brothers, and that he does not turn aside from the commandment, to the right or the left, so that he may make his days longer in his kingdom, he and his sons, in the midst of Israel.