5 When brothers reside together, and one of them dies and has no son, the wife of the deceased shall not be married outside the family to a stranger. Her husband's brother shall go in to her, taking her in marriage, and performing the duty of a husband's brother to her, 6 and the firstborn whom she bears shall succeed to the name of the deceased brother, so that his name may not be blotted out of Israel. 7 But if the man has no desire to marry his brother's widow, then his brother's widow shall go up to the elders at the gate and say, "My husband's brother refuses to perpetuate his brother's name in Israel; he will not perform the duty of a husband's brother to me." 8 Then the elders of his town shall summon him and speak to him. If he persists, saying, "I have no desire to marry her," 9 then his brother's wife shall go up to him in the presence of the elders, pull his sandal off his foot, spit in his face, and declare, "This is what is done to the man who does not build up his brother's house." 10 Throughout Israel his family shall be known as "the house of him whose sandal was pulled off." 11 If men get into a fight with one another, and the wife of one intervenes to rescue her husband from the grip of his opponent by reaching out and seizing his genitals, 12 you shall cut off her hand; show no pity.
Matthew Henry's Commentary on Deuteronomy 25:5-12
Commentary on Deuteronomy 25:5-12
(Read Deuteronomy 25:5-12)
The custom here regulated seems to have been in the Jewish law in order to keep inheritances distinct; now it is unlawful.