This custom still existed among the worshippers of Dagon so late as the reign of Josiah (see the marginal reference).
Related Commentaries of 1 Samuel 5:5
1 Samuel 5:5
5 Therefore neither the priests of Dagon, nor any that come into Dagon's house, tread on the threshold of Dagon in Ashdod unto this day.