The Ark in Ashdod and Ekron

1 After the Philistines had captured the ark of God, they took it from Ebenezer to Ashdod.

Read 1 Samuel 5:1 Using Other Translations

And the Philistines took the ark of God, and brought it from Ebenezer unto Ashdod.
When the Philistines captured the ark of God, they brought it from Ebenezer to Ashdod.
After the Philistines captured the Ark of God, they took it from the battleground at Ebenezer to the town of Ashdod.