The southern King Ptolemy III (247-221 BCE) attacked the northern King Seleucus II (246-225 BCE). Ptolemy III would enter the fortress of the king of the north, as he would be successful. He would take their spoils and booty back to Egypt, including the idols of their gods, as well as their precious silver and gold vessels. There were a few years of peace, but then the northern King Seleucus II attacked the south unsuccessfully and returned home.
Yahweh, via Jeremiah, said that he was going to give these Judeans in Egypt a sign that he was going to punish them in Egypt. The sign that he gave them was the fact that Pharaoh Hophra, the king of Egypt, would be overthrown by his enemies. Pharaoh Hophra was also known as King Apries (589-570 BCE), who would have been the ruler during this Judean refugee migration to Egypt. He was favorable to the Judeans, since he had tried unsuccessfully to protect Jerusalem from King Nebuchadnezzar during the siege of that city. He was killed in 570 by the new Pharaoh Amasis, who ruled from 570-526 BCE. Yahweh had done the same to King Zedekiah of Judah. Thus Yahweh wanted to show them that he had control over all kings.