In the past, when David"s enemies advanced against him, they stumbled and fell because God defended him. Therefore, David said that in the future he would not fear if an entire army were to pitch camp and prepare to attack him. [source][source][source]