Dearest brother, we rightfully acknowledge the stage of life you are now in, may Allah protect you from the ill wishes and evil desires inside your soul!

Yet, our advice to you to draw close to Allah through observing Salah in it times and learning the useful Islamic knowledge. Also, we do recommend you to look for righteous people and take them as your friends, who will help you keep sticking to the Islamic teachings and offer you the right and sincere advice whenever you need it, and help you pass this stage of your life in peace. By the way, do not fail to renovate and fortify your faith through regular contemplation on the Qur’an and pondering on Allah’s amazing creations. Moreover, we warn you against befriending bad people because you will get nothing from them except calling you to immoralities and misdeeds.

As regards the ruling on masturbation in Islam, Sheikh Muhammad Salih Al-Munajjid, a prominent Muslim scholar, states,

Masturbation (for both men and women) is haram (forbidden) in Islam based on the following evidence:

First from the Qur’an:

Imam Ash-Shafi`i stated that masturbation is forbidden based on the following verses from the Qur’an: (And those who guard their chastity (i.e. private parts, from illegal sexual acts). Except from their wives or (the captives and slaves) that their right hands possess, – for them, they are free from blame. But whoever seeks beyond that, then those are the transgressors.)(Al-Ma`arij, 23:5-7)

Here the verses are clear in forbidding all illegal sexual acts (including masturbation) except for the wives or that their right hand possess. And whoever seeks beyond that is the transgressor. Also, Almighty Allah says, “And let those who find not the financial means for marriage keep themselves chaste, until Allah enriches them of His bounty.” (An-Nur, 24:33)

This verse also clearly orders whoever does not have the financial means to marry to keep himself chaste and be patient in facing temptations (including masturbation) until Allah enriches them of His bounty.

Secondly, from the sunnah of the Prophet (peace be upon him):

Abdullah ibn Mas`ud said, “We were with the Prophet while we were young and had no wealth whatsoever. So Allah’s Messenger said, “O young people! Whoever among you can marry, should marry, because it helps him lower his gaze and guard his modesty (i.e. his private parts from committing illegal sexual intercourse etc.), and whoever is not able to marry, should fast, as fasting diminishes his sexual power.” (Al-Bukhari)

The hadith orders men who are not able to marry to fast despite the hardship encountered in doing so, and not to masturbate despite the ease with which it can be done. There are additional evidences that can be cited to support this ruling on masturbation. Allah knows what is best.

As for watching porn cartoons, Sheikh Muhammad Nur Abdullah, former president of the ISNA (Islamic Society of North America) and member of the Fiqh Council ofNorth America, states,

This is an avenue that will most likely lead to worse consequences, and therefore it must be blocked and prevented. Almighty Allah says in the Qur’an, [Those who love (to see) scandal published broadcast among the believers, will have a grievous penalty in this life and in the hereafter: Allah knows, and you know not] (An-Nur 24:19).
therefore, I would say it is unacceptable to watch these pornographic cartoons, and doing so will be counted as a sin.