“You are about to enter the land the LORD your God is giving you. When you take it over and settle there, you may think, ‘We should select a king to rule over us like the other nations around us.’
If this happens, be sure to select as king the man the LORD your God chooses. You must appoint a fellow Israelite; he may not be a foreigner.
“The king must not build up a large stable of horses for himself or send his people to Egypt to buy horses, for the LORD has told you, ‘You must never return to Egypt.’
The king must not take many wives for himself, because they will turn his heart away from the LORD . And he must not accumulate large amounts of wealth in silver and gold for himself.
“When he sits on the throne as king, he must copy for himself this body of instruction on a scroll in the presence of the Levitical priests.
He must always keep that copy with him and read it daily as long as he lives. That way he will learn to fear the LORD his God by obeying all the terms of these instructions and decrees.
This regular reading will prevent him from becoming proud and acting as if he is above his fellow citizens. It will also prevent him from turning away from these commands in the smallest way. And it will ensure that he and his descendants will reign for many generations in Israel.