3For Pharaoh will say of the Israelites, ‘They are wandering the land in confusion; the wilderness has boxed them in.’
4And I will harden Pharaoh’s heart so that he will pursue them. But I will gain honor by means of Pharaoh and all his army, and the Egyptians will know that I am the LORD.” So this is what the Israelites did.
5When the king of Egypt was told that the people had fled, Pharaoh and his officials changed their minds about them and said, “What have we done? We have released Israel from serving us.”
6So Pharaoh prepared his chariot and took his army with him.
7He took 600 of the best chariots, and all the other chariots of Egypt, with officers over all of them.
8And the LORD hardened the heart of Pharaoh king of Egypt so that he pursued the Israelites, who were marching out defiantly.
9The Egyptians — all Pharaoh’s horses and chariots, horsemen and troops — pursued the Israelites and overtook them as they camped by the sea near Pi-hahiroth, opposite Baal-zephon.
— Exodus 14:3-9