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.

Bereshit 15:13

וַיֹּאמֶר לְאַבְרָם יָדֹעַ

Bereshit / Genesis 15:13 · Pshat

Bereshit 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

At the covenant between the parts the Eternal reveals the future to Avram: his descendants will be strangers, slaves and afflicted for four hundred years. But Israel was in Egypt far less than that. So where do the four hundred come from?

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

Rashi That your offspring will be strangers

From Yitzchak's birth until Israel left Egypt was four hundred years. How? Yitzchak was sixty years old when Yaakov was born. And Yaakov, when he went down to Egypt, said: "the days of the years of my sojourning are a hundred and thirty years" (47:9). That is a hundred and ninety. And in Egypt they were two hundred and ten years, the number of "redu" (רְדוּ): that is four hundred years. And if you say they were in Egypt four hundred years: Kehat was among those who went down to Egypt. Go and count the years of Kehat, and of Amram, and the eighty years of Moshe when Israel left Egypt, and you will find only three hundred and fifty. And from these you must still subtract all the years Kehat lived after Amram's birth, and that Amram lived after Moshe's birth.
In a land not theirs.
It does not say "in the land of Egypt" but "in a land not theirs". And from Yitzchak's birth: "and Avraham sojourned" (21:34), and of Yitzchak: "sojourn in this land" (26:3), "and Yaakov sojourned in the land of Cham" (Tehillim / Psalms 105:23), "to sojourn in the land we have come" (47:4).

Ramban

"That your offspring will be strangers": this is a verse with transposed words, and its meaning is: "that your offspring will be strangers in a land not theirs four hundred years, and they will serve them and afflict them", and it does not explain how many days the slavery and affliction would be. And there are many verses with transposed words in Scripture. So too: "the Hebrew servant whom you brought to us came to me to mock me" (39:17). So too: "and all the earth came to Egypt to buy grain from Yosef" (41:57). So too: "for whoever eats leaven, that soul shall be cut off from Israel, from the first day to the seventh day" (Shemot / Exodus 12:15). So too: "on that day a man will cast away his idols of silver and his idols of gold, which they made for him to worship, to the moles and the bats" (Yeshayahu / Isaiah 2:20). So too: "come, hear, and I will tell, all who fear the Almighty, what He has done for my soul" (Tehillim / Psalms 66:16). So too: "to Me they will cry: my Almighty, we know You, Israel" (Hoshea / Hosea 8:2). So too: "and they shall be Mine, says the Eternal of Hosts, on the day that I make, a treasure, and I will spare them" (Malachi 3:17). And many like these. And the meaning of the verse: although I say to you "to your offspring I have given this land", know surely that before I give it to them, they will be strangers in a land not theirs four hundred years, and they will also be enslaved and afflicted. And Rabbi Avraham (Ibn Ezra) said: know surely that your offspring will be strangers, in slavery and affliction, until the end of four hundred years from this day. If so, He told him the end of the redemption but did not tell him how many days the exile would be. This too is correct.

Takeaway

The book of Exodus says: "and the dwelling of the children of Israel who dwelt in Egypt was four hundred and thirty years" (Shemot / Exodus 12:40). Rashi there counts these 430 years from the covenant between the parts, thirty years before Yitzchak's birth.
Kehat's years are 133, Amram's 137 (Shemot / Exodus 6:18–20), and Moshe was 80 at the Exodus (Shemot / Exodus 7:7). In all 350, and even that is too many, since the lives partly overlap.
In the Passover Haggadah this verse is brought as a promise that stood: "blessed is He who keeps His promise to Israel".