Deuteronomy 17: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.
Berean Standard Bible
And it shall be, when he sitteth upon the throne of his kingdom, that he shall write him a copy of this law in a book out of that which is before the priests the Levites:
It shall be, when he sits on the throne of his kingdom, that he shall write himself a copy of this law in a book, out of that which is before the Levitical priests.