To stop the people from fearing, Moses had made an affirmation, that the Lord himself would appear on Israel's behalf and fight for them—the first direct mention in the book of holy war. And he substantiated himself by reminding them of what they had already seen from God at the exodus.
30 The LORD your God who goes before you will himself fight for you, just as he did for you in Egypt before your eyes,