>>10282
https://en.wikipedia.org/wiki/Islam_and_masturbation
There seem to be a lot of opinions regarding it. It's been a source of discussion since the Prophet(صلى الله عليه و سلم) walked among us and I'm not sure we'll ever have a truly definitive answer.
I do know that we all sin and Allah forgives endlessly. It is best to avoid it, but if it can stop you from committing a worse sin, then it is preferable.
Young men need to be in the mosque and finding a wife. Before marriage, every Muslim should be in the mosque with all of their free time.