The Gemara implied that the sin of Moses in striking the rock at Meribah compared favorably to the sin of David. The Gemara reported that Moses and David were two good leaders of Israel. Moses begged God that his sin be recorded, as it is in , , and , and . David, however, begged that his sin be blotted out, as says, "Happy is he whose transgression is forgiven, whose sin is pardoned." The Gemara compared the cases of Moses and David to the cases of two women whom the court sentenced to be lashed. One had committed an indecent act, while the other had eaten unripe figs of the seventh year in violation of . The woman who had eaten unripe figs begged the court to make known for what offense she was being flogged, lest people say that she was being punished for the same sin as the other woman. The court thus made known her sin, and the Torah repeatedly records the sin of Moses.