The use of politically and religiously-motivated violence dates back to the early history of Islam, its origins are found in the behavior, sayings, and rulings of the Islamic prophet Muhammad, his companions, and the first caliphs in the 7th, 8th, and 9th centuries CE. Mainstream Islamic law stipulates detailed regulations for the use of violence, including corporal and capital punishment, as well as how, when, and against whom to wage war.
Sharia and Fiqh
Sharia Law is the basic Islamic religious law derived from the religious precepts of Islam, particularly the Quran and the opinions and life example of Muhammad (Hadith and Sunnah) which are the primary sources of sharia. For topics and issues not directly addressed in these primary sources, sharia is derived. The derivation differs between the various sects of Islam (Sunni and Shia are the majority), and various jurisprudence schools such as Hanafi, Maliki, Shafi'i, Hanbali and Jafari. The sharia in these schools is derived hierarchically using one or more of the following guidelines: Ijma (usually the consensus of Muhammad's companions), Qiyas (analogy derived from the primary sources), Istihsan (ruling that serves the interest of Islam in the discretion of Islamic jurists) and Urf (customs). Sharia is a significant source of legislation in various Muslim countries. Some apply all or a majority of the sharia, and these include Saudi Arabia, Sudan, Iran, Iraq, Afghanistan, Pakistan, Brunei, United Arab Emirates, Qatar, Yemen and Mauritania. In these countries, sharia-prescribed punishments such as beheading, flogging and stoning continue to be practiced judicially or extrajudicially. The introduction of sharia is a longstanding goal for Islamist movements globally, but attempts to impose sharia have been accompanied by controversy, violence, and even warfare.
The differences between sharia and secular law have led to an ongoing controversy as to whether sharia is compatible with secular forms of government, human rights, freedom of thought, and women's rights.