It was so, that after they had carried it about, the hand of Yahweh was against the city with a very great confusion: and he struck the men of the city, both small and great; and tumors broke out on them.
Chapters 4 and 5 both testify to God’s sovereignty. Neither Israel, in chapter 4, nor the Philistines, in chapter 5, could control or resist His will. We cannot manipulate God. We must follow Him rather than expecting Him to follow us. Had the Israelites learned this lesson they probably would not have demanded a king like the other nations (1 Samuel 8:5) but waited for Him to provide His choice for them.