They saw it - That is, they looked on it; they contemplated it; they were struck with its beauty and strength, and fled.
And so they marveled - It surpassed their expectations of its strength, and they saw with wonder that any attempt to conquer it was hopeless.
They were troubled - They were filled with anxiety and confusion. They even began to have apprehensions about their own safety. They saw that their preparations had been made in vain, and that all hopes of success must be abandoned.
And hasted away - They fled in confusion. The idea in the whole verse is that of a “panic,” leading to a disorderly flight. This “may” have occurred in the time of Jehoshaphat, 2 Chronicles 20:22-25. It may have been, however, that they approached the city, and were dismayed by its strength, so that they turned away before the internal conflict occurred which ended in their ruin. But it is not “necessary” to adjust these accounts one to another, or even to suppose that this was the event referred to in the psalm, though the general ideas in it accord well with all which occurred on that occasion.