Midrasch zu Bereschit 41:57
וְכָל־הָאָ֙רֶץ֙ בָּ֣אוּ מִצְרַ֔יְמָה לִשְׁבֹּ֖ר אֶל־יוֹסֵ֑ף כִּֽי־חָזַ֥ק הָרָעָ֖ב בְּכָל־הָאָֽרֶץ׃
Und von überall her kam man nach Ägypten, um bei Joseph Getreide zu kaufen; denn überall war die Hungersnot stark.
Pirkei DeRabbi Eliezer
The third king was Joseph, who ruled from one end of the world to the other, as it is said, "And all the earth came || into Egypt to Joseph" (Gen. 41:57). It is not written here "Egypt came," but "they came into Egypt," for they brought their tribute and their presents to Joseph to buy (corn); for forty years he was second to the king, and for forty years he was king alone, as it is said, "Now there arose a new king over Egypt" (Ex. 1:8).
Ask RabbiBookmarkShareCopy