In answer to a question about sex being only for procreation in Islam . . .
In the Islamic faith, the first and the foremost and the most reliable and highest form of religious law for faithful Muslims is contained within the holy Qur’an. The Prophetic Traditions (also known as Hadith, which are the sayings and doings and tacit approval of things said or done in the presence of the Prophet Muhammad, (p.b.u.h.)(1) are a second source of law. With that said, we hope the following reply will answer your question.
According to Islam, procreation is not the sole and only purpose of marriage. While procreation is a primary purpose, companionship and enjoyment of the spouse along with avoidance of unlawful or sinful relationships are also secondary purposes. These secondary purposes play their own important roles in the Islamic teachings which govern sexual relations. In other words, although procreation is definitely an aim, it is not an exclusive aim. Procreation is the major purpose, but nonetheless enjoyment and other purposes also play significant roles in married life as evidenced by the Islamic teachings which relate to sexual relations.