The law against sexual intimacy with a woman during her menstrual cycle was outlined in Leviticus 15:19, Leviticus 15:24. The punishment for both the man and his wife is that they shall be cut off from the nation of Israel. This signifies that they shall be excommunicated from the community.
18 If a man lies with a woman during her menstrual period and uncovers her nakedness, he has made naked her fountain, and she has uncovered the fountain of her blood. Both of them shall be cut off from among their people.