Nowhere in the Bible is masturbation explicitly forbidden. There is actual intention payment this because the refractory does not run across from masturbation, which is in itself neither secure or ill, but the adulterous libidinous fantasies that go along with it, as Christ makes clear in Matthew 5:28.
Source: tadalafil vs sildenafil