It is fair to say that religion has been involved in violence: the wars of religion in Europe, the Crusades, and attacks by extremists today who claim to act in Islam's name. Muslim rulers also fought wars, and some of these were wars of conquest and power. It would be dishonest to deny these things. But it is also true that people have killed in the name of land, empire, race, class and political ideology, and that the two world wars and the other great wars of the last century were fought mainly for power, territory and ideology. Blaming religion alone is too simple.
What matters is what each teaching actually says. The Quran says, in a rule first given to the Children of Israel and taken by Muslims as a general principle, that whoever kills a person, other than as a punishment for murder or for spreading corruption, it is as if he had killed all of mankind, and whoever saves a life, it is as if he saved all of mankind. It says that Allah does not forbid you from being kind and just to those who have not fought you over religion or driven you from your homes. The permission to fight was given to the persecuted, and the verse reminds that if Allah did not repel some people by means of others, monasteries, churches, places of prayer and mosques would have been demolished. The Prophet ﷺ said that whoever kills a person under a covenant of protection will not smell the fragrance of Paradise.
Muslims who commit violence against civilians act against these texts, and the vast majority of Muslim scholars have said so. Religion has also been behind much that is not violent: schools, hospitals, charity, and the abolition of cruel practices. The sensible test of a belief is not whether it has ever been abused, since everything has, but what it teaches at its source and what it makes of its best followers. If you are interested in what Islam says about war and peace, the questions on jihad and the rules of war have the details.