What is the meaning of "Im be'Gapo Yavo be'Gapo Yeitzei"?
Rashi: 'If he came in single (unmarried) 1 , he goes out single' - his master may not give him a slave-girl to live with. 2
Rashbam: It is a general statement - inasmuch as, if he came in single, a. he leaves single seeing as there is no wife to leave with him), and b. even if his master then gives him a 'wife' (a Shifchah Cana'anis) - he goes out alone. 3
Moshav Zekenim (2) #1: The Parshah can discuss Hashem acquiring Yisrael. If one is without Torah and Mitzvos in this world, he leaves this world without merit. "Im Ba'al Ishah Hu" - if he engaged in Torah, it accompanies him. "Im Adonav Yiten Lo Ishah" - if he engaged in Torah Lo Lishmah (for reward), he leaves this world without merit; his Torah becomes lethal poison for him. 4 If he loves his Master, and loves his wife (learns Torah Lishmah), "v'Higisho Adonav El ha'Elokim" - he will behold the Shechinah [after death] and serve "l'Olam" (merit Techiyas ha'Meisim).
Moshav Zekenim #2: The letters of b'Gapo spell b'Guf, for one without a wife is like a fleeting bird.
Moshav Zekenim #3: He does not go free if the master knocked out an external limb. 5 However, if so, why do we need "Lo Setzei k'Tzeis ha'Avadim"? 6
Hadar Zekenim: B'Gapo is like "Gufas (the body of) Sha'ul" (Divrei ha'Yamim 1 10:12). See also Sifsei Chachamim.
Oznayim la'Torah: Although Rashi does not mention it, 'single' incorporates a wife and children - and that, based on the Pasuk in B'har, Vayikra, 25:41, it is only if he has a wife and children that his master may not give him a Shifchah Cana'anis. See Oznayim la'Torah who elaborates.
Both of which the Torah goes on to explain; a. If he came in married, his wife leaves together with him, and b. the wife that his master gave him does not go out with him, since she belongs to her master (Rashbam).
Ta'anis 7a. However, Tosfos (DH v'Chol) asks that Pesachim 50b counsels to engage in Torah Lo Lishmah, for he will come to Lishmah! He answers that there it discusses learning for honor, and in Ta'anis, one who learns in order to quarrel. It is astounding that Moshav Zekenim says that Torah learned for reward is lethal poison! However, the Rambam (Perush ha'Mishnayos Sof Makos) agrees that one does not merit the world to come through Mitzvos Lo Lishmah. (PF)
As if the Torah had written "Im be'Gufo Yavo be'Gufo Yeitzei" (Torah Temimah).
"Lo Setzei" discusses an Ivriyah; Ivri and Ivriyah are equated. (PF)
To whom does "Im Ba'al Ishah hu" refer?
Mechilta: It refers to his real wife. 1
Mechilta: Since the wife that his master gives him is discussed in the next Pasuk.
What does the Torah mean when it concludes "Im Ba'al Ishah hu, Veyatz'ah Ishto imo"?
Rashi and Ramban (citing the Mechilta): By inference, it means that someone who purchases an Eved Ivri, is obligated to feed him and his wife and children, 1 and that, when the Eved Ivri leaves, this obligation automatically terminates.
Moshav Zekenim (Al Derech Derush): Refer to 21:3:1:3.
Ramban: We learn from "Imo" that as long as the husband is working for him, whatever his wife and (small) children produce belongs to the master - though the woman is not bound by this deal, should she prefer to remain independent (And he adds that this is also the opinion of Rashi in Kidushin, 22a). See Ramban DH 've'Chol Zeh', who elaborates further.
Why does the Torah insert "Ishto Imo"?
Mechilta: "Ishto" precludes the master from having to feed the Eved Ivri's Shomeres Yavam, and "Imo" precludes his Arusah.
QUESTIONS ON RASHI
Rashi writes that one who buys an Eved Ivri must feed also his wife and children. What is the source? The Torah did not mention children here!
Kidushin 22a: We learn from 1 "v'Yatza me'Imach Hu u'Vanav Imo 2 " (Vayikra 25:41).
Da'as Zekenim, Hadar Zekenim: The one who holds that there is no Gezeirah Shavah [equating one who sold himself and one that Beis Din sold him], this is a Giluy Milsa.
Moshav Zekenim - a father himself must feed only very small children (under six), and all the more so a master! Toras Moshe - here the Torah did not hint to this, for any children at the time the slave was sold reach six years before the slave is freed, and they left before him. Vayikra 25:41 discusses going free in Yovel; this can be within six years, and his children who are less than six leave with him. It seems that Gur Aryeh disagrees. Refer to 21: 3:153:1 and the note there.
Rashi writes that if he came in single, his master may not give to him a Shifchah to live with. It is more reasonable to permit this if the slave is single!
Moshav Zekenim #1: A man finds contentment only from his first wife and children. If his first 'marriage' was to a Shifchah, he would not want to leave her, and would be Nirtza. The Torah wants him to be a slave only to Hashem!
Moshav Zekenim citing R. Yehudah ha'Chasid: If a bachelor could marry a Shifchah, one might see a pretty Shifchah and sell himself in order to marry her. The Torah wants him to be a slave only to Hashem!
Moshav Zekenim #2: If he was not married and did not fulfill Peru u'Rvu yet 1 , the master may not give to him a Shifchah [lest he not marry someone else afterwards, and he will never fulfill Peru u'Rvu].
Chizkuni (4): When the master must feed the slave's wife and children, he may give a Shifchah to the slave, to receive baby slaves from this union.
If he is married, his master may give to him a Shifchah even before he fulfilled Peru u'Rvu! At least he is making proper effort to fulfill it. We are not concerned lest he divorce his Yisraelis wife due to the Shifchah. (PF)
Rashi writes that one who buys an Eved Ivri must feed also his wife and children. The Torah did not obligate a man to feed his wife and children. Why is the master obligated more than a free man?
Gur Aryeh: It says "Ki Tov Lo Imach" (Devarim 15:16). It is good for a man when his wife and children are fed. 1
It seems that this applies even to children above six years, unlike Moshav Zekenim. Refer to 21:3:151:1**.