"Are you the Prophet?"
Deuteronomy 13:1-3 the congregation in the desert is taught to discern a false prophet in that he encourages the people to worship or serve other gods. The Torah is our Instruction on how to serve God but the false prophet tells people, in the Name of God, to do thing contrary to Torah, which is equal to serving other gods (Romans 6:16).
Later, Moses instructs the children of the Children of Israel to not seek the will of God through diviners, fortune tellers, witches, or astrologers (Deuteronomy 18:9-14), but for matters too difficult for them, to establish judges and a Sanhedrin, and that they are supposed to listen to them (Deuteronomy 17:8-12). These are commandments.
Later Moses gives people instructions on how to choose a king, even instructions for the king himself to obey. The king of Israel is to be subject to the Torah; when he is not, he makes Israel sin and serve other gods (Deuteronomy 17:14-17).
In His Instruction through Moses, He Who makes Israel a nation tells us who is the prophet we should listen to once we are in the land. The main attributes given are "… a prophet like me from among you, from your brothers--it is to him you shall listen". Moses also informs the people that their ancestors who came out of Egypt had wisely that they could not hear God on their own; they elected wanted Moses as a mediator. God agreed and said, they are right in what they have spoken. I will raise up for them a prophet like you from among their brothers (Deuteronomy 18:15, 18). It is important to notice here that any would be king of Israel also had to be "from among them" but in the days of the Master, there a non-Jewish king on the throne of Israel.
Because Joshua opened the Jordan River as Moses opened the Red Sea, some conclude that this 'prophet' was Joshua, but when Sadducees came to see John by the Jordan River, they asked him, "Are you the Prophet (John 1:21)?". John later pointed to another one called Joshua, pronounced in Aramaic: Yeshua (John 1:29).
In this Yeshua, Israel has found its prophet and king 'like Moses'. He is the true prophet who teaches us how to properly obey the Torah, and the true king who is Himself the copy of the Torah. Even though He had to temporarily return to the Father, He has not left us alone, but has established in His disciples a Sanhedrin we can, and should listen to (Matthew 16:16; Matthew 19:28).
Living in an age of literacy, may we continually study and learn to obey the Instructions the Master and His disciples left behind that at His return, he might present the congregation to himself in splendor, without spot or wrinkle or any such thing, that she might be holy and without blemish (Ephesians 5:27).