Deut 17:18-20

18When 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.19It 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,20neither 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.