Wrong. Prophet Mohammed fought only those who transgressed on him and on his companions, and they killed some of them and tried to kill him, and so he fled them; then when he escaped to Medina city, God allowed him to fight those who transgressed on him.
While Prophet Moses ordered his people...