After the Philistines took God's chest, they brought it from Ebenezer to Ashdod.
References for 1 Samuel 5:1
Then the Philistines took God's chest and brought it into Dagon's temple and set it next to Dagon.
But when the citizens of Ashdod got up early the next morning, there was Dagon, fallen facedown on the ground before the LORD's chest! So they took Dagon and set him back up where he belonged.
But when they got up early the next morning, there was Dagon again, fallen facedown on the ground before the LORD's chest—and this time Dagon's head along with both his hands were cut off and lying on the doorstep! Only Dagon's body was left intact.
References for 1 Samuel 5:4
That's why to this day Dagon's priests or anyone else who enters his temple in Ashdod doesn't step on the threshold.
The LORD's hand was heavy on the people of Ashdod: God terrified them and struck them in Ashdod and its surroundings with tumors.
References for 1 Samuel 5:6
When Ashdod's inhabitants saw what was happening, they said, "The chest of Israel's God must not stay here with us because his hand is hard against us and against our god Dagon."
So they summoned all the Philistine rulers to a meeting and asked, "What should we do with the chest of Israel's God?" The people of Gath said, "Let the chest of Israel's God be moved to us." So they moved the chest of Israel's God to Gath.
References for 1 Samuel 5:8
But once they moved it, the LORD's hand came against the city, causing a huge panic. God struck the city's inhabitants, both young and old, and tumors broke out on them.
Then they sent God's chest to Ekron, but as soon as God's chest entered Ekron, the inhabitants cried out, "Why have you moved the chest of Israel's God to us? In order to kill us and our people?"
References for 1 Samuel 5:10
So they summoned all the Philistine rulers to a meeting and said, "Send the chest of Israel's God away! Let it go back to its own home so it doesn't kill us and our people," because there was a deadly panic throughout the whole city. The hand of God was very heavy there.
The people who didn't die were struck with tumors, and the screams of the city went all the way up to heaven.