Deuteronomy 17:18 NIV

18 When he takes the throne1 of his kingdom, he is to write2 for himself on a scroll a copy3 of this law, taken from that of the priests, who are Levites.

References for Deuteronomy 17:18