LGBT in Islam is influenced by the religious, legal and cultural history of the nations with a sizable Muslim population, along with specific passages in the Quran and statements attributed to the Islamic prophet Muhammad (hadith). Hadiths traditionally are not interpreted because their language is understood to be simple matter-of-fact language. Orthodox Islam is not only a system of beliefs, but also a legal system.
The traditional schools of Islamic law based on Quranic verses and hadith, and influenced by Islamic scholars such as Imam Malik and Imam Shafi, consider homosexual acts a punishable crime and a sin. The Qur'an cites the story of the "people of Lot" destroyed by the wrath of God because they engaged in lustful carnal acts between men. Nevertheless, homoerotic themes were present in poetry and other literature written by some Muslims from the medieval period onwards and sometimes homoeroticism in the form of pederasty was seen in a positive way.
Extreme prejudice remains, both socially and legally, in much of the Islamic world against people who engage in homosexual acts. In Afghanistan, Brunei, Iran, Iraq, Mauritania, Nigeria, Saudi Arabia, Sudan, United Arab Emirates and Yemen, homosexual activity carries the death penalty. In others, such as Algeria, Maldives, Malaysia, Qatar, Somalia and Syria, it is illegal. Same-sex sexual intercourse is legal in 20 Muslim-majority nations (Albania, Azerbaijan, Bahrain, Bosnia and Herzegovina, Burkina Faso, Chad, Djibouti, Guinea-Bissau, Lebanon, Tunisia, Jordan, Kazakhstan, Kosovo, Kyrgyzstan, Mali, Niger, Tajikistan, Turkey, West Bank (State of Palestine), and most of Indonesia (except in Aceh and South Sumatra provinces, where bylaws against LGBT rights have been passed), as well as Northern Cyprus. In Albania, Tunisia, Lebanon, and Turkey, there have been discussions about legalizing same-sex marriage. Homosexual relations between females are legal in Kuwait, Turkmenistan and Uzbekistan, but homosexual acts between males are illegal.