Short answer

Islam has a law of war, set down in the Qur'an and by the Prophet Muhammad (ﷺ). Many early scholars count one verse as the first to allow fighting. It was given to people driven from their homes. It names churches and synagogues among the houses of God (﷾) that fighting protects. The Qur'an allows fighting only against those who fight, and never beyond the limits. They must accept peace when the enemy offers it, and give safety to an enemy who asks. Women and children must not be killed. The dead must not be mutilated, pledges must not be broken, and no one may be punished by fire. When his general broke these limits, the Prophet (ﷺ) publicly disowned what he had done. The jurist al-Shaybani wrote a whole book on this law more than eight hundred years before Hugo Grotius, often called the father of international law. None of this gives any individual or group a right to fight: in Islamic law war is for the ruler of a state alone, and Muslims keep the law of whatever country they live in (17:34).

Read the full explanation

See your saved pages