I once had a Muslim co-worker tell me that he never masturbated, not even once, because it's forbidden by Islam. I don't think it's explicitly forbidden, but it's seen as forbidden because it is omitted as an approved sex act, which is between a man and a wife or a man and his slave.