“And God sent me before you to prepare for you a remnant in the land and to keep you alive for a great deliverance.” (Genesis 45:7)
When he finally revealed himself to his brothers, Yosef tried to assuage their guilt by repeatedly telling them that even though they intended evil in they way they treated him – it ultimately ended up for the best.
Yosef is saying that his being in Egypt was a precursor to what is described in Exodus 1:1 “And these are the names of the sons of Yisrael who came into Egypt, every man came with his household.”
These two verses complement each other. What is described in the first paved the way for the second. Incredibly, if you add up the numerical value of each letter in these verses, we truly see how closely they are related to each other. The gematria (numerical value) of the letters in both verses is exactly 3161!