Exodus 14:4 (NIV)
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.
At the end of your battle, there is not only room for a miracle but it is awaiting you.
What you thought was an attack is just an opportunity to bring glory to God!