Wa`alaykum As-Salamu Warahmatullahi Wabarakatuh.
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
1- Muslims are required to follow the Prophet’s guidance in aspects of life so as to achieve success in this world and the world to come.
Sheikh `Atiyyah Saqr, former head of Al-Azhar Fatwa Committee, says,
There are some ways through which one can control his sexual desire:
1- Getting married as soon as possible, even with little furniture and humble accommodation.
2- Observing moderation in eating and drinking in order to avoid stimulating one’s desire.
3- Observing fasting, because it bolsters one’s faith, preserves chastity, and protects one from evil thoughts. The Prophet (peace and blessings be upon him) is reported to have said: “O youth, whoever of you is able to marry, let him marry, for it spares one looking at what one should not, or lapsing in adultery. And if he cannot marry, let him observe fasting, for it is a shield against evil.”(Muslim)
4- Keeping away from anything that is sexually stimulating, such as pornographic pictures, erotic films and love songs.
6- Keeping oneself busy in worship and spiritual acts.
7- Interacting with activities of the society in such a way that it keeps a person away from thinking about sex.
8- Avoiding gatherings and places that bring men and women physically close to each other.
9- Trying to admire natural things such as flowers and beautiful scenery, which do not stimulate one sexually, instead of admiring girls and women.
Allah Almighty knows best.
Editor’s note: This fatwa is from Ask the Scholar’s archive and was originally published at an earlier date.