In Islam, sexual desire is a gift from Allah, just like all other desires that He has created in us. In order to have a legitimate outlet for this built-in desire, Allah has created mates for us. Referring to this, Allah the Almighty says, “He that created for you mates from among yourselves that you can dwell with them in tranquility.” (Ar-Rum: 21)
However, a Muslim has to strike an equitable balance between his psychological and spiritual needs. He is not supposed to live solely for the purpose of sexual gratification. The use of Viagra and other similar drugs which usually enhance sexual performance are to be done under the supervision of a trustworthy doctor who is specialized in this field. Also, the main purpose behind taking such drugs is to treat sexual dysfunction, and not merely for the mere obsession of sex.
Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states the following: “A Muslim must never live solely for the gratification of sexual pleasures. However, since sexual fulfillment is considered a legitimate human need, according to Islam, it is considered permissible for a person to make use of drugs that are considered safe—if he is suffering from sexual dysfunction.
But, if there is no issue of sexual dysfunction, then it is not recommended for anyone to use such drugs to enhance sexual pleasure. Islam teaches us to stick to the path of moderation in all things. One should not spend his whole lifetime in the bedroom.
Therefore, we must establish a proper balance in our lives and give due measure of importance to all our legitimate needs and desires. The Prophet (peace and blessings be upon him) is reported to have said, “Your body has rights, your soul has rights, your spouse has rights, and your guests have rights; so give each one his/her rightful due.”
The above quotation is excerpted with slight modifications from: www.muslims.ca
Moreover, Dr. Mahmoud `Akkam, professor of Shari`ah at Syrian Universities, concludes: “The issue of taking Viagra and other drugs that enhance sexual performance or treat sexual dysfunction should be done after consulting a specialized doctor known for his honesty.”