According to Muslim theology, all true believers down thru history have been Muslim, including Adam, Noah, Solomon and Jesus.
Mohammed was just the last and greatest of the Muslim prophets.
You can call ancient Egyptians Middle Easterners if you like, but since they were enthusiastically polytheistic, you can’t really call them proto-Muslim.
But today’s Africanists insist that the ancient Egyptians were black, which is a joke given their depictions of Nubian slaves.
Well they were the stock that Mohammed drew from. Muslims came from somewhere. He formed the death cult from those polytheists and monotheists throughout the middle east. Thus, proto Muslim. When Horous and Ra went on permanent vcacation, plenty of their former followers ended up joining up with the Moon cult. And those were the enslavers. Egypt above most had a strong to to slavery.