First of all, we’d like to state that Islam is totally against harming the body. The Prophet (peace and blessings be upon him) is reported to have said, “No harm shall be inflicted or reciprocated in Islam. “At the same time, Islam is against free sex and immorality for the security and stability of people.

As for the issue you referred to, Islam gives solutions to youth to control themselves without any harm.

1. They can marry even with low dowry and 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.”(Reported by Muslim)
4- Keeping away from anything that is sexually stimulating, such as pornographic pictures, erotic films and love songs.
5- Choosing good and righteous friends.
6- Keeping oneself busy in worship and spiritual acts.
7- Interacting with activities of the society in such away 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.

Having stated the above, we’d like to clarify that out of Allah’s mercy and wisdom youth experience wet dreams from time to time to help them keep peace of mind and to make semen to be released naturally without violating the rules of Shari`ah.