Deuteronomy 17:15

17:15 you must select without fail a king whom the Lord your God chooses. From among your fellow citizens you must appoint a king – you may not designate a foreigner who is not one of your fellow Israelites.

Deuteronomy 18:18

18:18 I will raise up a prophet like you for them from among their fellow Israelites. I will put my words in his mouth and he will speak to them whatever I command.