As the newly liberated Jews flee Egypt, their former captors gave chase:

וּפַרְעֹה הִקְרִיב וַיִּשְׂאוּ בְנֵי יִשְׂרָאֵל אֶת עֵינֵיהֶם וְהִנֵּה מִצְרַיִם נֹסֵעַ אַחֲרֵיהֶם וַיִּירְאוּ מְאֹד וַיִּצְעֲקוּ בְנֵי יִשְׂרָאֵל אֶל ה – Pharaoh drew near, and the children of Israel raised their eyes, and Egyptians were pursuing them. They were terrified, and they cried out to the Lord. (14:10)

Although the Torah clearly intends to mean that he drew near i.e. that he and his army approached, it doesn’t actually say that at all. It says הקריב – a word used for sacrifices, meaning “he brought near”. The Medrash says that Pharaoh was indeed מקריב – what he “brought near” was the Jews, closer to Hashem.

Why does the Torah attribute such credit Pharoah and what is it he did which deserved such high recognition?

There is a Midrash that teaches that prior to the Jews leaving Egypt, there was a debate in Heaven as to whether they should be allowed to leave. The prosecution and defense, the Kategor and Sanegor, would keep going in circles; “The Egyptians worship idols,” was countered with “So do the Jews!” – no redeeming quality could be found in the Jews favour.

The decisive factor in allowing their departure to occur was the faith placed in Hashem through deciding to follow Moshe.

Egypt recognised that their departure would be a massive loss and pursued them. Suddenly, the Jews faith evaporated:

וַיֹּאמְרוּ אֶל מֹשֶׁה הַמִבְּלִי אֵין קְבָרִים בְּמִצְרַיִם לְקַחְתָּנוּ לָמוּת בַּמִּדְבָּר מַה זֹּאת עָשִׂיתָ לָּנוּ לְהוֹצִיאָנוּ מִמִּצְרָיִם – They said to Moshe, “Were there no graves in Egypt that you have taken us to die in the desert? What have you have done by taking us out of Egypt!?” (14:11)

Their attachment to Moshe was severed, their faith gone. They cried out to Hashem but didn’t mean it – the entire episode demonstrates a lack of belief in God’s providence.

Moshe prays for assistance, and Hashem replies: מַה תִּצְעַק אֵלָי – What are you crying out to me for? Now is a time for action! This is וּפַרְעֹה הִקְרִיב – Pharaoh brought the Jews close to Hashem; but to the exclusion of Moshe from the equation. It is no praise at all.

So Hashem responds:

וַיֹּאמֶר ה אֶל מֹשֶׁה מַה תִּצְעַק אֵלָי דַּבֵּר אֶל בְּנֵי יִשְׂרָאֵל וְיִסָּעוּ – The Lord said to Moshe, “Why do you cry out to Me? Speak to the children of Israel and tell them to go!”. (14:15)

Their salvation was not going to be based on Moshe’s prayers, or theirs, as that wasn’t the problem.

Moshe’s authority had to be re-established, so Hashem gave him the solution: דַּבֵּר אֶל בְּנֵי יִשְׂרָאֵל וְיִסָּעו – their salvation would be as it was on leaving Egypt – through displaying faith their leader.

As the Pasuk says upon their entering the Red Sea: וַיַּאֲמִינוּ בַּה’ וּבְמֹשֶׁה עַבְדּוֹ – They believed in Hashem and His servant Moshe. (14:31).