Deuteronomy 17:18 NIV

18 When he takes the throne of his kingdom, he is to write for himself on a scroll a copy of this law, taken from that of the Levitical priests.

References for Deuteronomy 17:18