"And they turned back and encamped before Pi-Hahiroth" (Exodus 14:2). "Hiroth" means nothing other than the place of the freedom of the Egyptians—the place of their idle resort, the place of their idolatry. Formerly it was called Pithom, as it is said, "Pithom and Raamses" (Exodus 1:11); it came to be called Pi-Hahiroth because they would set their worshippers free there. They said: these "hiroth" were not chipped away but enclosed; they were not sloped but sheer like fortress walls; they were not round but square. They had eyes, and they were open. They were not the work of flesh and blood but the work of Heaven. They were shaped like a male and a female—these are the words of Rabbi Eliezer. Rabbi Joshua says: "hiroth" was on one side and a tower on the other, the sea before them and the Egyptians behind them. Another interpretation: "And they turned back and encamped before Pi-Hahiroth." Moses said to them, "Return backward." Once they sounded the horn to turn back, the ones lacking faith among them began tearing at their hair and rending their garments. Moses said to them, "From the mouth of the Holy One it was said to me that you are free men." "Between Migdol and the sea." There was the greatness of Egypt and there was their glory, and there Joseph gathered all the money, as it is said, "And Joseph brought the money into Pharaoh's house" (Genesis 47:14). "Before Baal-Zephon." Baal-Zephon was left to them out of the "hiroth" idols in order to lure the heart of the Egyptians, and of it is said, "He makes nations great and destroys them" (Job 12:23). "Opposite it you shall encamp by the sea." Scripture tells that at Migdol there were crowds equal to all who came out of Egypt. Another interpretation: "Opposite it you shall encamp by the sea"—in order to lure the heart of the Egyptians.
Pi-Hahiroth and the Idol Left Standing at Baal-Zephon
Mekhilta DeRabbi Shimon Ben Yochai 14:2
וישובו ויחנו לפני פי החירות אין חירות אלא מקום חירותן של מצרים מקום עטלין שלהן מקום ע"ז שלהן לשעבר היתה נקראת פיתום כענין שנאמר (א' י"א) את פיתום ואת רעמסם חזרה להיות נקראת פי החירות שהיו מאחרין את עובדיהן: אמרו חיראות הללו לא היו תרוטות אלא מוקפות ולא היו משופעות אלא גדודיות, ולא היו עגולות אלא מרובעות עינים היו להם והיו מפותחות לא היו מעשה בשר ודם אלא מעשה שמים, כמין זכר ונקבה היו דברי ר' אליעזר, ר' יהושע אומר חירות מצד אחד ומגדל מצד אחר וים מלפניהם ומצרים מאחריהם: ד"א וישובו ויחנו לפני פי החירות אמר להן משה חזרו לאחוריכם. כיון שתקעו קרן לחזור התחילו מחוסרי אמנה שבהן מתלישין בשערן ומקרעין בכסותן אמר להם משה מפי הקדש נאמר לי שאתם בני חורין: בין מגדול ובין הים. שם היתה גדולתן של מצרים ושם היתה תפארת שלהן ולשם כינס יוסף את כל הכסף כענין שנאמר (בראשית מ"ו י"ד) ויבא יוסף את הכסף ביתה פרעה: לפני בעל צפון. בעל צפון נשתייר להם מחיראות כדי לפתות את ליבן של מצרים ועליו הוא אומר (איוב י"ב כ"ג) משגיא לגוים ויאברם: נכחו תחנו על הים. מגיד הכתוב במגדול אכלוסין כנגד כל יוצאי מצרים ד"א נכחו תחנו על הים. כדי לפתות לבם של מצרים: