Here "Egypt" is a metonym for the people of Egypt, and "gather" is a metaphor for causing them to return to Egypt. Alternate translation: "I will cause the people of Egypt to return to Egypt" (See: [[rc://en/ta/man/translate/figs-metonymy]] and [[rc://en/ta/man/translate/figs-metaphor]])