Bereshit / Genesis 15:13
וַיֹּאמֶר לְאַבְרָם יָדֹעַ תֵּדַע כִּי־גֵר יִהְיֶה זַרְעֲךָ בְּאֶרֶץ לֹא לָהֶם וַעֲבָדוּם וְעִנּוּ אֹתָם אַרְבַּע מֵאוֹת שָׁנָה׃
And He said to Avram: "Know surely that your offspring will be strangers in a land not theirs, and they will serve them and be afflicted by them four hundred years.
Pshat פְּשָׁט
Four hundred years
Rashi: the four hundred years are counted from Yitzchak's birth: 60 years until Yaakov was born, Yaakov's 130 years until going down to Egypt, and 210 years in Egypt. It says not "in Egypt" but "in a land not theirs": Avraham, Yitzchak and Yaakov already lived as strangers. Ramban: the words of the verse are inverted. The four hundred years refer to being strangers, while how long the slavery would last is not said.
How Rashi and Ramban explain it
Remez רֶמֶז
Two hundred and ten in two letters
Kitzur Ba'al HaTurim: the last letters of "ki ger", י and ר, give 210, the number of years Israel was in Egypt. Lekach Tov: the next verse says not "achar ken" (אַחַר כֵּן) but "acharei chen" (אַחֲרֵי כֵן), "and afterwards": a yod (י) is added, that is 10, the number of the ten plagues.
How Kitzur Ba'al HaTurim and Midrash Lekach Tov explain it
Drash דְּרָשׁ
Know that I scatter, and know that I gather
Bereshit Rabbah: "know" that I will scatter them, and "know" that I will gather them. Know that I will pledge them, and know that I will redeem them. Know that I will enslave them, and know that I will deliver them. Exile and redemption are said together. Chizkuni: "know surely" answers Avram's question "by what shall I know?" (15:8). With the same word he asked, being strangers was decreed on his offspring: measure for measure.
How Bereshit Rabbah and Chizkuni explain it
Sod סוֹד
Silver in the furnace
Sefat Emet: Avraham is the preparation for both exile and redemption. Without the merit of the patriarchs we would not have survived the exile. So we pray "God of Avraham": we take up faith along our fathers' path, and their merit helps us. Ohev Yisrael: scattering, pledge and slavery are three stages of refining, like silver in the furnace. Holy sparks fell into the shells, and exile frees them. And the gathering will come through unity: when each person becomes "one" within, turning all his powers to the Creator, all Israel will become "one".
How Sefat Emet and Ohev Yisrael explain it