Did Deuteronomy 18 fortell the coming of Muhammad?

You refer to the idea that Muhammad is like Moses (Deut 18:18). The problem is everything you pointed out is irrelevant to the meaning of “like Moses” in the context of the book of Deuteronomy because Deuteronomy itself defines what the phrase “like Moses” is referring to in this context. Deuteronomy 34:10 “Since that time, no prophet has risen in Israel like Moses whom the Lord knew face to face, for all the signs and wonders which the Lord sent him to perform in the land of Egypt against Pharaoh and all his servants.” The phrase “like Moses” is referring to someone who would know God face-to-face and to someone who would perform signs and wonders. Is Muhammad like moses in this sense? No. Did Muhammad know Allah face-to-face? No, Muhammad supposedly received revelations from Gabriel. Did Muhammad perform miracles? No, the Quran denies over and over again that Muhammad could perform signs and wonders. The people the people during his time challenged him over and over again “Please would you perform a sign like Moses” and Muhammad simply could not do it. Second, we have to consider the context of the passage. This prophet like Moses was to be raised up from the countrymen, the brethren of the Israelites. In context, this refers to fellow Jews.  I invite you to go back to Deuteronomy 18:2 to where it uses the exact same word to refer obviously to one’s fellow Israelites. No one would have said this refers to Arabs.