Ezekiel 29:13

Yet thus saith the Lord God; At the end of forty years will I gather the Egyptians from the people whither they were scattered:

Cross-reference

Ezekiel 30:23 describes the scattering of Egyptians among nations, the judgment that precedes the gathering promised here.

Jeremiah 46:26 also promises Egypt's restoration after judgment by Nebuchadnezzar, echoing the gathering here after 40 years.

Isaiah 19:22 promises God will smite and heal Egypt — a parallel to the restoration after scattering in this verse.