Deuteronomy 17:18

BSB(i) 18 When he is seated on his royal throne, he must write for himself a copy of this instruction on a scroll in the presence of the Levitical priests.