Islam during prophet Mohamed b. (622-632 AD) was not beyond the main Arabian Peninsula. But during the first three Caliphs, Abu Bakr (632-634), and Umar (634-644)(Assassinated), Uthman (644-656)(Assassinated) it went into invasions.
That was totally unacceptable to many believers but the Turkic elements encouraged such offensive military expansions.
The fourth Caliph Ali (656-661)(Assassinated) was the cousin of the prophet and he stopped that and carried out internal reforms and these were the main causes for the eruption of a brutal civil war throughout his rule (656-661) that ended up by assassinating him and killing most of this family.
By that killings the original Islam died and it was replaced by a fake Turkic militant cult calling itself Islam. This became the source of terrorism, colonialism, and heresy.