More After the Jump
This law is derived from the story of Onan (Gen. 38:8-10), who practiced coitus interruptus as a means of birth control to avoid fathering a child for his deceased brother. G-d killed Onan for this sin. Although Onan’s act was not truly masturbation, Jewish law takes a very broad view of the acts prohibited by this passage, and forbids any act of ha-sh’cha’tat zerah (destruction of the seed), that is, ejaculation outside of the vagina. In fact, the prohibition is so strict that one passage in the Talmud states, “in the case of a man, the hand that reaches below the navel should be chopped off.” (Niddah 13a)
The issue is somewhat less clear for women. Obviously, spilling the seed is not going to happen in female masturbation, and there is no explicit Torah prohibition against female masturbation. Nevertheless, Judaism generally frowns upon female masturbation as “impure thoughts.”