The cavalry, which by now was scattered all over the battlefield, fled to Azotus, where they took refuge in the temple of Dagon, their god.