The Unethical Life? #9: Slavery in Egypt
(כז) וַיֵּ֧שֶׁב יִשְׂרָאֵ֛ל בְּאֶ֥רֶץ מִצְרַ֖יִם בְּאֶ֣רֶץ גֹּ֑שֶׁן וַיֵּאָחֲז֣וּ בָ֔הּ וַיִּפְר֥וּ וַיִּרְבּ֖וּ מְאֹֽד׃
(27) Thus Israel settled in the country of Egypt, in the region of Goshen; they acquired holdings in it, and were fertile and increased greatly.

Sources from Nehama Leibowitz' introduction to Exodus:

1. ...When Joseph died, they abrogated the rite of circumcision. They said, Let us be like the Egyptians. Because they did so, the Holy One Blessed be God turned the love which the Egyptians bore them into hatred.(Shemot Rabbah)

2. 'And the land was filled with them' - the amphitheaters and circuses were full of them.(Yalkut Shimoni)

3. The Israelites were punished for violating Jacob's wish that they should live apart from the Egyptians in Goshen.

4. [There is] and educational motive for the exile - so that we observe the commandments as a result of remembering how we were once slaves and unable to worship God freely.

(כ) וְגֵ֥ר לֹא־תוֹנֶ֖ה וְלֹ֣א תִלְחָצֶ֑נּוּ כִּֽי־גֵרִ֥ים הֱיִיתֶ֖ם בְּאֶ֥רֶץ מִצְרָֽיִם׃
(20) You shall not wrong a stranger or oppress him, for you were strangers in the land of Egypt.
(ט) וְגֵ֖ר לֹ֣א תִלְחָ֑ץ וְאַתֶּ֗ם יְדַעְתֶּם֙ אֶת־נֶ֣פֶשׁ הַגֵּ֔ר כִּֽי־גֵרִ֥ים הֱיִיתֶ֖ם בְּאֶ֥רֶץ מִצְרָֽיִם׃
(9) You shall not oppress a stranger, for you know the feelings of the stranger, having yourselves been strangers in the land of Egypt.
(יא) וְשָׂמַחְתָּ֞ לִפְנֵ֣י ׀ יי אֱלֹקֶ֗יךָ אַתָּ֨ה וּבִנְךָ֣ וּבִתֶּךָ֮ וְעַבְדְּךָ֣ וַאֲמָתֶךָ֒ וְהַלֵּוִי֙ אֲשֶׁ֣ר בִּשְׁעָרֶ֔יךָ וְהַגֵּ֛ר וְהַיָּת֥וֹם וְהָאַלְמָנָ֖ה אֲשֶׁ֣ר בְּקִרְבֶּ֑ךָ בַּמָּק֗וֹם אֲשֶׁ֤ר יִבְחַר֙ יי אֱלֹקֶ֔יךָ לְשַׁכֵּ֥ן שְׁמ֖וֹ שָֽׁם׃
(11) You shall rejoice before the LORD your God with your son and daughter, your male and female slave, the Levite in your communities, and the stranger, the fatherless, and the widow in your midst, at the place where the LORD your God will choose to establish His name.
(יד) וְי֙וֹם֙ הַשְּׁבִיעִ֜֔י שַׁבָּ֖֣ת ׀ לַיי אֱלֹקֶ֑֗יךָ לֹ֣א תַעֲשֶׂ֣ה כָל־מְלָאכָ֡ה אַתָּ֣ה וּבִנְךָֽ־וּבִתֶּ֣ךָ וְעַבְדְּךָֽ־וַ֠אֲמָתֶךָ וְשׁוֹרְךָ֨ וַחֲמֹֽרְךָ֜ וְכָל־בְּהֶמְתֶּ֗ךָ וְגֵֽרְךָ֙ אֲשֶׁ֣ר בִּשְׁעָרֶ֔יךָ לְמַ֗עַן יָנ֛וּחַ עַבְדְּךָ֥ וַאֲמָתְךָ֖ כָּמֽ֑וֹךָ׃ (טו) וְזָכַרְתָּ֞֗ כִּ֣י־עֶ֤֥בֶד הָיִ֣֙יתָ֙ ׀ בְּאֶ֣רֶץ מִצְרַ֔֗יִם וַיֹּצִ֨אֲךָ֜֩ יי אֱלֹקֶ֤֙יךָ֙ מִשָּׁ֔ם֙ בְּיָ֤֥ד חֲזָקָ֖ה֙ וּבִזְרֹ֣עַ נְטוּיָ֑֔ה עַל־כֵּ֗ן צִוְּךָ֙ יי אֱלֹקֶ֔יךָ לַעֲשׂ֖וֹת אֶת־י֥וֹם הַשַׁבָּֽת׃ (ס)
(14) but the seventh day is a sabbath of the LORD your God; you shall not do any work—you, your son or your daughter, your male or female slave, your ox or your ass, or any of your cattle, or the stranger in your settlements, so that your male and female slave may rest as you do. (15) Remember that you were a slave in the land of Egypt and the LORD your God freed you from there with a mighty hand and an outstretched arm; therefore the LORD your God has commanded you to observe the sabbath day.
(יד) הַעֲנֵ֤יק תַּעֲנִיק֙ ל֔וֹ מִצֹּ֣אנְךָ֔ וּמִֽגָּרְנְךָ֖ וּמִיִּקְבֶ֑ךָ אֲשֶׁ֧ר בֵּרַכְךָ֛ יי אֱלֹקֶ֖יךָ תִּתֶּן־לֽוֹ׃ (טו) וְזָכַרְתָּ֗ כִּ֣י עֶ֤בֶד הָיִ֙יתָ֙ בְּאֶ֣רֶץ מִצְרַ֔יִם וַֽיִּפְדְּךָ֖ יי אֱלֹקֶ֑יךָ עַל־כֵּ֞ן אָנֹכִ֧י מְצַוְּךָ֛ אֶת־הַדָּבָ֥ר הַזֶּ֖ה הַיּֽוֹם׃
(14) Furnish him out of the flock, threshing floor, and vat, with which the LORD your God has blessed you. (15) Bear in mind that you were slaves in the land of Egypt and the LORD your God redeemed you; therefore I enjoin this commandment upon you today.

Encyclopedia Judaica "Slavery":

BIBLICAL LAW

The Hebrew term for slave, 'eved (pl. 'avadim), is a direct derivation from the verb ʿbd, "to work"; thus, the "slave" is only a worker or servant. The eved differs from the hired worker (sakhir) in three respects: he receives no wages for his work; he is a member of his master's household (cf. Gen. 24:2; Lev. 22:11; and see below); and his master exercises patria potestas over him; for example, the master may choose a wife for the slave and retains ownership of her (Ex. 21:4) and he has proprietary rights in him (see below).

Classification

The following classes of 'avadim are to be distinguished:

HEBREW SLAVES

A Hebrew could not become a slave unless by order of the court (for which see under Criminals, below) or by giving himself voluntarily into bondage (for which see under Paupers, etc., below; Yad, Avadim 1:1). Other slaves were always recruited from outside the nation. It has been opined that the epithet "'eved 'ivri," and the laws relating to Hebrew slaves (Ex. 21:2–6) would apply also to such non-Jewish slaves as were born into the household as the offspring of alien slaves (see, for instance, Saalschuetz, Das Mosaische Recht (1853), ch. 101).

ALIEN SLAVES

"Of the nations that are round about you, of them shall ye buy bondmen and bondwomen. Moreover of the children of the strangers that do sojourn among you, of them may ye buy and of their families that are with you which they have begotten in your land; and they may be your possession" (Lev. 25:44–45).

PAUPERS AND DEBTORS

A debtor who is unable to pay his debts may give himself in bondage to his creditor (cf. Lev. 25:39; Prov. 22:7; see also II Kings 4:1; Isa. 50:1; Amos 2:6, 8:6; Neh. 5:5). According to other opinions, the verse in Leviticus 25:39 deals with an ordinary pauper who sold himself and the debtor's bondage was against strict law, although it happened from time to time in practice (see Elon, Ḥerut ha-Perat, 1–10, and n. 9; *Execution (Civil)).

CRIMINALS

A thief who is unable to make restitution is "sold for his theft" (Ex. 22:2).

PRISONERS OF WAR

It would appear from Numbers 31:26–27 and Deuteronomy 20:10–11 that prisoners of war could be, and were, taken into bondage, but it has been contended that no prisoners of war were ever taken into private slavery (Kaufmann, Y., Toledot 1 (1937), 651).

FEMALE SLAVES

A father may sell his daughter into slavery (Ex. 21:7), usually apparently for household duties and eventual marriage (Ex. 21:7–11).

CHILDREN OF SLAVES

The Bible mentions "the son of thy handmaid" (Ex. 23:12), "he that is born in the house" (Gen. 17:12, 13; Lev. 22:11), indicating that the status of slaves devolved upon their children.

EJ:

Treatment of Slaves

In the case of a pauper who sells himself into slavery or a man who is redeemed from bondage to a stranger, no distinction may be made between a slave and a hired laborer (Lev. 25:40, 53). A master may not rule ruthlessly over these slaves (Lev. 25:43, 46, 53) nor ill-treat them (Deut. 23:17); Ben Sira adds: "If thou treat him ill and he proceeds to run away, in what way shalt thou find him?" (Ecclus. 33:31). A master may chastise his slave to a reasonable extent (Ecclus. 33:26) but not wound him (Ex. 21:26–27). The workload of a slave should never exceed his physical strength (Ecclus. 33:28–29). A fugitive slave must not be turned over to his master but given refuge (Deut. 23:16). There was no similar rule prevailing in neighboring countries (cf. I Kings 2:39–40). The *abduction of a person for sale into bondage is a capital offense (Ex. 21:16; Deut. 24:7). In general, "thou shalt remember that thou wast a bondman in the land of Egypt" (Deut. 15:15), and that you are now the slaves of God Who redeemed you from Egypt (Lev. 25:55).

(נה) כִּֽי־לִ֤י בְנֵֽי־יִשְׂרָאֵל֙ עֲבָדִ֔ים עֲבָדַ֣י הֵ֔ם אֲשֶׁר־הוֹצֵ֥אתִי אוֹתָ֖ם מֵאֶ֣רֶץ מִצְרָ֑יִם אֲנִ֖י יי אֱלֹהֵיכֶֽם׃
(55) For it is to Me that the Israelites are servants: they are My servants, whom I freed from the land of Egypt, I the LORD your God.