Sharia law, a set of religious laws which derives from the teachings of the Koran and from Sunna (the practice of the prophet Mohammed), is implemented to varying degrees in different Islamic countries. Sharia offers a relgious code for living governing all elements of life, in the same way that the Bible offers a moral system for Christians. It is adopted by most Muslims to a greater or lesser degree as a matter of personal conscience, but it can also be formally instituted as law by certain states and enforced by the courts. For example, many Islamic countries have adopted elements of sharia law governing areas such as inheritance, banking and contract law.
Within sharia law, there is a specific set of offences known as the Hadd offences. These are crimes punished by specific penalties: sexual offences carry a penalty of stoning to death or flogging while theft is punished with cutting off a hand. The penalties for Hadd offences are not universally adopted as law in Islamic countries. Some countries, such as Saudi Arabia, claim to live under pure sharia law and enforce the penalties for Hadd offences. In others, such as Pakistan, the penalties have not been enforced. The majority of Middle Eastern countries, including Jordan, Egypt, Lebanon and Syria, have not adopted Hadd offences as part of their state laws. Many Islamic countries will have adultery and the drinking of alcohol defined as criminal offences in law, but they are not defined as Hadd offences because they do not carry the Hadd penalty. They are often punishable by a prison term instead.