First of all, remove the guilt that it is bad. It is normal physiological urge. As such masturbation is not harmful but sometimes (particularly in daily masturbators) it may result into premature ejaculation (early discharge). It does not cause any problem in penis or sperms.