And when the men of Ashdod saw how things were, they said, “The ark of the God of Israel must not remain with us, for his hand is hard against us and against Dagon our god.”
The downfall of Dagon (if the people had made a good use of it, and had been brought by it to repent of their idolatries and to humble themselves before the God of Israel and seek his face) might have prevented the vengeance which God here proceeds to take upon them for the indignities done to his ark, and their obstinate adherence to their idol...
Commenting on 1 Samuel 5:6-12
And when the men of Ashdod saw that it was so,.... That many of their inhabitants were taken away by death, and others afflicted with a painful disease; all which they imputed to the ark being among them: they said, the ark of the God of Israel shall not abide with us; like the Gergesenes, who besought Christ to depart their coasts, having more regard...
the ark of God shall not abide with us--It was removed successively to several of the large towns of the country, but the same pestilence broke out in every place and raged so fiercely and fatally that the authorities were forced to send the ark back into the land of Israel [Sa1 5:8-10].