Deuteronomy 17:18-20

17:18 When he sits on his royal throne he must make a copy of this law on a scroll given to him by the Levitical priests. 17:19 It must be with him constantly and he must read it as long as he lives, so that he may learn to revere the Lord his God and observe all the words of this law and these statutes and carry them out. 17:20 Then he will not exalt himself above his fellow citizens or turn from the commandments to the right or left, and he and his descendants will enjoy many years ruling over his kingdom in Israel.