Sheikh Riyâd al-Musaymîrî, professor at al-Imâm University in Riyadh
Your problem will be completely solved if you possess two things.
The first thing you need to have is the sincere intention and conviction to abandon these sins. You should be able to control your desires and your whims and resist them with steadfastness. Keep in mind Allah’s observance over your motions and positions. You should feel shy when you are aware that Allah sees you. Remember how filthy these women are when they offer their bodies for tens or hundreds of adulterers which is something awful and disgusting.
The second thing you need is to protect yourself with a legal marriage so you can satisfy your needs lawfully. Do not give the excuse of being poor, studying, working, or some other circumstances. When you are sincere with Allah in seeking chastity, He will help you, ease things for you, and provide you with marriage.
Otherwise, you will continue face trials and live in a continuous dispute with Satan’s whispers and your soul will continue to incite you to evil.
May Allah protect you and guide you.
Source: Islam Today