Exodus 14:4 NIV

4 And I will harden Pharaoh’s heart, and he will pursue them. But I will gain glory for myself through Pharaoh and all his army, and the Egyptians will know that I am the LORD.” So the Israelites did this.

References for Exodus 14:4