Yevamos 61b: A man may not stop trying to have children unless he has children already. Beis Shamai says two boys, and Beis Hillel says a boy and a girl, as the Torah says, “Male and female He created them.”
יבמות סא ע”ב: לא יבטל אדם מפריה ורביה אלא א״כ יש לו בנים. ב״ש אומרים: שני זכרים, וב״ה אומרים: זכר ונקבה, שנאמר: (בראשית ה׳) זכר ונקבה בראם.
A man came to Rabbi Yisroel Reisman and asked the following question. He and his wife were going through the process of IVF and preimplantation genetic testing to select for embryos that were free of genetic disease and were most likely to survive. They already had a boy; so should he tell the doctors to select a girl so that he could fulfill the mitzvah of “be fruitful and multiply”?
“There are actually two questions here,” said Rabbi Reisman. “Let’s start by asking if you can fulfill the mitzvah of having children through IVF at all.”
The Chelkas Mechokek (Even Hoezer 1:8) says: “When a woman gets pregnant from going to the bath after a man, I am not certain whether that man fulfills the mitzvah of having children.”
The Beis Shmuel 1:10 says there is proof from the Rabbeinu Peretz quoted by the Bach (and later quoted by the Taz in Yoreh Deah 195:7). Rabbeinu Peretz was asked: why is a Jewish woman particular not to sleep on another man’s sheets, out of fear that she might get pregnant from that man’s seed, but she has no problem sleeping on her husband’s sheets when she is a niddah? If she gets pregnant from her husband’s seed, wouldn’t the child have the spiritual disadvantage of being a “ben niddah”? Rabbeinu Peretz replied that since the child was not born from a forbidden sexual act, he is not a “ben niddah,” and even if he were born from another man’s seed, he would not be a mamzer. The real reason to avoid another man’s sheets is so that the child knows who his father is, so that he doesn’t end up marrying his sister. We see from Rabbeinu Peretz that a child born through IVF is halachically the son of the sperm donor. If so, that sperm donor (in our case, the husband) fulfills the mitzvah to have children.
However, the commentary on Even Hoezer 1 attributed to the Taz (actually written by the Chacham Tzvi) rejects this proof. Perhaps Rabbeinu Peretz said this only as a stringency (that such a child marrying his sister from the sperm donor’s side might be a sin) but he was not certain enough about it to be lenient and say that this is called fulfilling “be fruitful and multiply.” Furthermore, if the woman got pregnant from the bathwater, the man took no action toward having a child and so he would not get the mitzvah. (This last argument would not apply to IVF or artificial insemination, where the man takes deliberate action to make it happen.)
The Minchas Chinuch (Mitzvah 1, Section 26 in the Machon Yerushalayim edition) quotes the Beis Shmuel position that one does fulfill the mitzvah through a bath, and comments that this makes sense based on the concept he developed earlier that the mitzvah of having children is not action-based; it’s result-based. The action (of having marital relations) is only a preparation for the mitzvah. This explains why, if one had children and they later died, he did not do the mitzvah (Yevamos 62a, opinion of Rabbi Yochanan, brought as halacha in EH 1:6). Why not? Didn’t he do the mitzvah already? The answer is that it is result-based. Similarly, if a non-Jew had children with his non-Jewish wife and then he and the children later converted, he fulfills the mitzvah (ibid. 1:7). Although the usual rule is that doing a mitzvah at a time when you are exempt from it is not called fulfilling the mitzvah, here we look at the result, and the result is that he has children.
Reb Moshe (EH 2:18) adds that even if the mitzvah of having children is an action-based mitzvah like all other mitzvos, we can explain that having a boy and a girl is not the goal of the mitzvah; it’s an exemption from the mitzvah. That’s why the Mishnah in Yevamos doesn’t say, “How many children is a man obligated to have?” It says, “A man may not stop trying to have children unless he has children already.” Therefore, the convert fulfills the mitzvah with his children born before the conversion, because having a son and daughter, no matter how they were born, exempts you from the mitzvah. Similarly, if one had children but they later died, his exemption from the mitzvah ends and he must have more children. Accordingly, children born through IVF would also be an exemption.
“Your second question,” continued Rabbi Reisman, “is, assuming that you do fulfill the mitzvah this way, should you select for a girl?
“Let me tell you a story. When my wife had given birth to seven boys and no girls yet, I asked Rav Pam if I should make a change in the Tefillas Haramban and leave out the request for a boy, or perhaps I should even pray for a girl. Rav Pam said, ‘No. Say the tefillah the normal way, and let Hashem run the world.’
“I said: ‘If my tefillah doesn’t change anything, and Hashem runs the world the way He wants, then why say it at all? So obviously, we pray because Hashem sometimes answers tefillos. If so, why shouldn’t I pray for a girl?’ Rav Pam replied, ‘Our hishtadlus for a mitzvah should only be by doing things the natural way, not praying.’ I felt uncomfortable pushing the issue because Rav Pam himself only had sons.
Rabbi Reisman concluded, “I tell you the same thing Rav Pam said: don’t do anything unnatural in order to get the mitzvah. Tell the doctors to implant the most viable embryos, whether they’re male or female.”
Source: Rabbi Reisman, shiur on YD 195
[How could Rav Pam say that there is no praying for mitzvos? Don’t some people daven on Tu Bishvat to get a good esrog? And the chazzan says the “Hineni” asking for Hashem’s help in leading the tzibur in prayer.
Perhaps Rav Pam meant to say something along the lines of the Igros Moshe quoted above. Having a son and daughter is not the mitzvah; it’s just the ptur from the mitzvah. You’re not obligated to try to become potur. Your job is to make an effort to do the mitzvah naturally. Hashem runs the world, and He will decide if you will be exempt or not.
We could ask, however, from the Gemara which says (Berachos 54a): If a man prays, “May it be Your will that my wife give birth to a boy,” when she is already pregnant, then his prayer is in vain. The implication is that he should say this prayer earlier, when she is not yet pregnant. Why is he allowed to pray for a boy? Let Hashem run the world! The answer is that he is not praying for a boy in order to fulfill the mitzvah. The Gemara isn’t talking about someone who already has a girl and therefore wants a boy. It’s talking about someone who wants a boy for personal reasons – in order to do the mitzvos of bris milah and pidyon haben, or in order to have someone to teach Torah to, or to say kaddish for him. The Tefillas Haramban is also written for people who want a boy for personal reasons. It has nothing to do with the mitzvah of having children.]
