Deuteronomy 20:2

So it shall be, when you are on the verge of battle, that the priest shall approach and speak to the people.