Nazir2: 7
”הֲרֵינִי נָזִיר לִכְשֶׁיִּהְיֶה לִי בֵן”, וְנוֹלַד לוֹ בֵן — הֲרֵי זֶה נָזִיר. נוֹלַד לוֹ בַת, טֻמְטוּם, וְאַנְדְרוֹגִינוֹס — אֵינוֹ נָזִיר. אִם אָמַר כְּשֶׁאֶרְאֶה כְּשֶׁיִּהְיֶה לִי וָלָד — אֲפִלּוּ נוֹלַד לוֹ בַת, טֻמְטוּם, וְאַנְדְרוֹגִינוֹס, הֲרֵי זֶה נָזִיר.
7. [One who says:] “I am a nazir when a son will be [born] to me,” and a son was born to him —- he is a nazir. [If] a daughter, or one of unknown gender, or an androgyne was born to him —- he is not a nazir. If he said: “When I shall see that there will be [born] to me a child” —- even [if there] is born to him a daughter, or one of unknown gender, or an androgyne —- he is a nazir.