Sexuality in Islam contains a wide range of views and laws, which are largely predicated on the Quran, and the sayings attributed to Muhammad (hadith) and the rulings of religious leaders (fatwa) confining sexual activity to marital relationships between men and women. Sexual jurisprudence () and marital jurisprudence () are the codifications of Islamic scholarly perspectives and rulings on sexuality, which both in turn also contain components of Islamic family jurisprudence, Islamic marital jurisprudence, hygienical, criminal and bioethical jurisprudence. All instructions regarding to sex in Islam are regarded as parts of, firstly, Taqwa or obidience and secondly, Iman or faithfulness to God. While most traditions discourage celibacy, all encourage strict chastity and modesty with regard to any relationships between genders, holding forth that their intimacy as perceived within Islam is largely reserved for marriage. This sensitivity to gender difference and modesty outside of marriage can be seen in current prominent aspects of Muslim cultures, such as interpretations of Islamic dress and degrees of gender segregation. Islamic marital jurisprudence allows Muslim men to be married to multiple women (a practice known as polygyny).
In Islam, prohibitions against extramarital sex are strong, and permissible marital sexual activities are familiar subjects. Marriage is the only permitted sexual relationship, and it is described in Quran and hadith as bringing about strong love and closeness, however historically Islam have also permitted men to have extramarital sex with concubines (sex slaves). Contraceptive use is permitted for birth control. Homosexual acts are strictly forbidden.
Legal prescriptions
Modesty
Islam has strongly emphasized the concept of conservatism, decency and modesty (haya) and chastity; besides the lawful sexuality, priority is given to modesty and chastity both inside and outside the marital relationships. The Quran warns against immoral lust (fahisha), and the hadith literature, modesty has been described as "a part of faith". Islam strictly discourages nudity and public nakedness, and it is also forbidden for spouses to spread the secrets of what happens between them in their private marital life.
Education
Adult
Islam has a long tradition of pragmatism with respect to sex education, with sex being readily discussed and not subject or taboo as long as the topics under discussion were Islamically permissible. A hadith attributed to Muhammad's wife Aisha states that the Ansar women in particular were not shy about asking questions regarding sexual matters as long as they are halal. From as early as the 14th-century, entire manuscripts devoted to Islamic sexual education were being written in Arabic in Baghdad, which at that time was a great literary centre within the Muslim world.
The Perfumed Garden of Sensual Delight (Arabic: الروض العاطر في نزهة الخاطر) is a fifteenth-century Arabic Islamic sex manual and work of erotic literature by Muhammad ibn Muhammad al-Nefzawi, also known simply as "Nefzawi". The book presents opinions on what qualities men and women should have to be attractive and gives advice on sexual technique, warnings about sexual health, and recipes to remedy sexual maladies. It gives lists of names for the penis and vulva, and has a section on the interpretation of dreams. Interspersed with these there are a number of stories which are intended to give context and amusement.
Children
In traditional practice, sex education is not recommended until the approach of puberty, children are expected to be taught the signs of this and the characteristics which distinguish men from women. Islamic tradition also encourages that sexual education be entwined with morality, explaining Islamic rules involving the covering the intimate parts of the body, ‘awrah, and the Islamic positions on modesty, chastity and avoiding promiscuity.