Deuteronomy 17:12-16 English Standard Version (ESV)

12. The man who acts presumptuously by not obeying the priest who stands to minister there before the Lord your God, or the judge, that man shall die. So you shall purge the evil from Israel.

13. And all the people shall hear and fear and not act presumptuously again.

14. “When you come to the land that the Lord your God is giving you, and you possess it and dwell in it and then say, ‘I will set a king over me, like all the nations that are around me,’

15. you may indeed set a king over you whom the Lord your God will choose. One from among your brothers you shall set as king over you. You may not put a foreigner over you, who is not your brother.

16. Only he must not acquire many horses for himself or cause the people to return to Egypt in order to acquire many horses, since the Lord has said to you, ‘You shall never return that way again.’

Deuteronomy 17