The “word of Samuel” is another way of saying the Word of the Lord, since Samuel is now the one relaying God’s truth to the nation (as God’s prophet).
The Israelites saw the ark as a powerful talisman (as did the Philistines), but they mistook the presence of the ark for the favor of God. God grants the victory to the Philistines because of His judgment on the nation. Eli’s sons are killed (as prophesied), the ark is taken into captivity, and Eli ends up dying when he hears the news.
Thought for the day: Do we ever mistake earthly things for God’s favor and presence in our lives?
Psalm 20:7 (WEB) “Some trust in chariots, and some in horses, but we trust in the name of Yahweh our God.”