Rules of war
Permission to fight is given to those against whom war is made, because they have been wronged… Those who have been driven out from their homes unjustly only because they said, ‘Our Lord is God’ — And if God did not repel some men by means of others, there would surely have been pulled down temples and churches and synagogues and mosques… (22:40-41).
O people! I charge you with ten rules; learn them well… for your guidance in the battlefield! Do not commit treachery, or deviate from the right path. You must not mutilate dead bodies. Neither kill a child, nor a woman, nor an aged man. Bring no harm to the trees, nor burn them with fire, especially those which are fruitful. Slay not any of the enemy’s flock, save for your food. You are likely to pass by people who have devoted their lives to monastic services; leave them alone.
Thus, Muhammad’s rules of war permit defensive fighting against active combatants while forbidding harm to anyone or anything else — human, animal, or property. Contrast this with Hamas rocket attacks and PIJ terrorist attacks — the distinction is clear. Likewise, as Gaza’s death count rises, Israel also has blood on its hands. According to Muhammad’s rules of war, no justification exists for either side to attack civilians, property, animals, or anyone who is not an active combatant.
And even against combatants, Muhammad put Muslims on notice. Once, Usama bin Zaid overcame an enemy soldier in hand-to-hand combat. The soldier implored Usama for amnesty just as Usama prepared to deliver the deathblow. Usama heard but ignored the plea and killed him anyway. Learning of this, Muhammad vociferously condemned Usama’s act as repulsive to Islamic rules of war.
Mind you, this combatant persecuted Muslims, helped exile them from Mecca, pursued them to murder them, and even then Muhammad required Usama to accept his amnesty plea — knowing full well the plea could be a lie.
Muhammad assumed this risk because he refused to forsake any opportunity for peace. After Muhammad, the Khalifa Umar, and centuries later, the legendary Muslim General Salahuddin, again demonstrated these principles. Both insisted Jews return to Jerusalem — as equals — whereas they suffered immense persecution under Christian rule.
Even ardent critics of Islam such as Sir William Muir admit that Muslims treated POWs with immense dignity. Captives were well fed and ransoms were according to their means.