The shortest route for the children of Israel to the Promised Land, would have been straight across the land of the Philistines.
However, G-d wanted to give the newly-born Jewish nation the opportunity to throw off the remnants of Egyptian influence, and to educate them in the new ways of a holy life, through the Divine Torah which was to be given to them on Mount Sinai.
Furthermore, the shortest way to the Holy Land would have involved the people in a war with the Philistines, and it was doubtful whether the children of Israel, who had just left centuries of continuous slavery behind, would be strong enough to fight like free men; they might decide to return to Egypt rather than face a bloody war.
Therefore, G-d led the Jewish people in a round-about way. Instead of following the coast of the Mediterranean Sea all the way to the Promised Land, they were led southwards through the desert.
After three days, Pharaoh received word of the progress of the children of Israel. The unexpected direction of their march made him think that they had gotten lost in the desert. Pharaoh now regretted that he had permitted them to leave. He immediately mobilized his army and personally took the lead of his choicest cavalry and war-chariots in hot pursuit of his former slaves. He reached them near the banks of the Red Sea, and pressed them close to the water, in an effort to cut off their escape.
Fear gripped the children of Israel as they saw the pursuing hosts of their enslaver Some groups among them were ready to fight the Egyptians; others preferred to drown in the floods of the sea than risk defeat and return to slavery. A third group of frightened and feeble people began to complain against Moses, fearing that he had lured them out of the safety of Egypt to die in the desert.
"Because there were no graves in Egypt," they exclaimed, "hast thou taken us away to die in the wilderness? Wherefore hast thou done this to us, to lead us forh out of Egypt? Is not this the word that we spoke to thee in Egypt, saying, 'Let us alone, that we may serve the Egyptians? For it is better for us to serve the Egyptians than that we should die in the wilderness.' "
But Moses, calm and firm in one of the most trying moments of his life, said: "Fear ye not, stand still and see the salvation of the Lord, which He will show you today: for as you have seen the Egyptians today, you shall see them again no more forever. The Lord will fight for you, and you shall keep yourselves quiet."
Then Moses led the Israelites onwards until they came to the very borders of the Red Sea. The pillar of cloud now changed its position; for, retreating from the front to the rear of the Hebrew hosts, it floated between the two armies; over the Israelies it shed a brilliant light, while it spread a veil of darkness over the Egyptians.
But the Israelites seemed now helplessly hemmed in by overwhelming dangers: the Egyptians were close behind them, and the waves of the Red Sea were breaking at their feet.