Deuteronomy 17:18

New International Version Bible (NIV)
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.

Read Deuteronomy 17:18 in other translations