Deuteronomy 17:15 in the King James Version
Thou shalt in any wise set him king over thee, whom the LORD thy God shall choose: one from among thy brethren shalt thou set king over thee: thou mayest not set a stranger over thee, which is not thy brother.
Context
14 When you have come to the land which the LORD your God gives you, and possess it and dwell in it, and say, “I will set a king over me, like all the nations that are around me,”
15 you shall surely set him whom the LORD your God chooses as king over yourselves. You shall set as king over you one from among your brothers. You may not put a foreigner over you, who is not your brother.
16 Only he shall not multiply horses to himself, nor cause the people to return to Egypt, to the end that he may multiply horses; because the LORD has said to you, “You shall not go back that way again.”