Deut 17:18-19

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,