וְאֵיזוֹ הִיא מִצְוַת עֲשֵׂה שֶׁבַּנִּדָּה שֶׁחַיָּבִין עָלֶיהָ, הָיָה מְשַׁמֵּשׁ עִם הַטְּהוֹרָה וְאָמְרָה לוֹ נִטְמֵאתִי, וּפֵרַשׁ מִיָּד, חַיָּב, מִפְּנֵי שֶׁיְּצִיאָתוֹ הֲנָאָה לוֹ כְּבִיאָתוֹ:
Quand pour le précepte relatif aux menstrues, la transgression comporte-t-elle un sacrifice? Si quelqu’un a des relations avec une femme pure, laquelle déclare (pendant le coït) être devenue impure lorsque l’homme se retire aussitôt d’elle, il est coupable, quia tam egressus ejus quam ingressus est ei voluptas.
Bartenura
For the transgression of a positive commandment relating to the menstruant – He was having relations with her when she was clean and in the midst of relations she tells him that she has become impure, the commandment is for him to withdraw. But he may not withdraw immediately because withdrawing is just as pleasurable as intercourse. Rather, he should dig his toenails in the ground and wait without moving until he loses his erection and then he should withdraw. And this is the positive commandment for the menstruant. If the beit din ruled erroneously that he should withdraw immediately, it is obligated to bring a bull for an error-in-judgment sacrifice, since the individual is obligated to bring a sin-offering for his error.