http://islamicity.com/Mosque/seerah.HTM
The theory of Islam and Sword for instance is not heard now frequently in any quarter worth the name. The principle of Islam that there is no compulsion in religion is well known. Gibbon, a historian of world repute says, "A pernicious tenet has been imputed to Mohammadans, the duty of extirpating all the religions by sword." This charge based on ignorance and bigotry, says the eminent historian, is refuted by Quran, by history of Muslem conquerors and by their public and legal toleration of Christian worship. The great success of Mohammad's life had been effected by sheer moral force, without a stroke of sword.
But in pure self-defense, after repeated efforts of conciliation had utterly failed, circumstances dragged him into the battlefield. But the prophet of Islam changed the whole strategy of the battlefield. The total number of casualties in all the wars that took place during his lifetime when the whole Arabian Peninsula came under his banner, does not exceed a few hundreds in all. But even on the battlefield he taught the Arab barbarians to pray, to pray not individually, but in congregation to God the Almighty. During the dust and storm of warfare whenever the time for prayer came, and it comes five times a every day, the congregation prayer had not to be postponed even on the battlefield. A party had to be engaged in bowing their heads before God while other was engaged with the enemy. After finishing the prayers, the two parties had to exchange their positions. To the Arabs, who would fight for forty years on the slight provocation that a camel belonging to the guest of one tribe had strayed into the grazing land belonging to other tribe and both sides had fought till they lost 70,000 lives in all; threatening the extinction of both the tribes to such furious Arabs, the Prophet of Islam taught self-control and discipline to the extent of praying even on the battlefield. In an aged of barbarism, the Battlefield itself was humanized and strict instructions were issued not to cheat, not to break trust, not to mutilate, not to kill a child or woman or an old man, not to hew down date palm nor burn it, not to cut a fruit tree, not to molest any person engaged in worship. His own treatment with his bitterest enemies is the noblest example for his followers. At the conquest of Mecca, he stood at the zenith of his power. The city which had refused to listen to his mission, which had tortured him and his followers, which had driven him and his people into exile and which had unrelentingly persecuted and boycotted him even when he had taken refuge in a place more than 200 miles away, that city now lay at his feet. By the laws of war he could have justly avenged all the cruelties inflicted on him and his people. But what treatment did he accord to them? Mohammad's heart flowed with affection and he declared, "This day, there is no REPROOF against you and you are all free." "This day" he proclaimed, "I trample under my feet all distinctions between man and man, all hatred between man and man."
This was one of the chief objects why he permitted war in self defense, that is to unite human beings. And when once this object was achieved, even his worst enemies were pardoned. Even those who killed his beloved uncle, Hamazah, mangled his body, ripped it open, even chewed a piece of his liver.