The Philistines and their elders, the Israelites of Beth-Shemesh, and of course God are the main parties in this drama.
View Places in Book of Samuel in a larger mapThe narrative spans a period of seven months ending in harvest time, set in
Ekron,
Ashdod and
Gath, three of the five principal cities of the Philistines; and the last events are in
Beth-Shemesh, a border territory of Judah.
The ark of the Lord has been captured by the Philistines after a disastrous campaign by the Israelites in a futile attempt to overcome their oppressors. The glory of the Lord has tragically departed from Israel (1 Sam 4:21), now a subjugated and orphaned nation.
The story unfolds, most entertainingly, as follows:
The ark of the Lord is too hot to handle (1 Sam 5:1-12) 1. Plundered to Ashdod and placed beside their god, Dagon, they find the deity prostrate on one day, dismembered and decapitated the next, and the people are stricken with sores. (It is recorded that no one would step on the threshold of the Dagon's temple again henceforth.)
2. Evicted to Gath, the plague follows and causes panic
3. Dumped to Ekron, many die and other survive with sores. There is widespread terror and their anguish pierces the heavens.
4. The Philistine leaders decide to return the ark in fear of their lives
The ark is returned with gifts (1 Sam 6:1-12) 
1. Philistine priests and omen readers devise a maneuver to diagnose (did they bring down this plague upon themselves with the ark?) and to remedy their error with guilt offerings
2. Five (for the five cities of Philistine) gold carvings of their sores and five of the rodents that rampaged their cities are placed with the ark, and couriered to the Israelite border town of Beth-Shemesh by previously unyoked and nursing mother-cows
3. The cows and carts head straight for Beth-Shemesh and the Philistine leaders return to Ekron - the diagnostic and therapeutic trial is successful
The ark is received with joy and grief (1 Sam 6:13-21)1. The ark arrives at a big stone near the field of Joshua
2. The people of Beth-Shemesh are delighted, make a sacrifice of the wood and cows on the stone, and place the ark in the field of Joshua
3. 50,070 men are killed for looking at the ark! A cause of grief and a request to be relived of the ark.
Interesting
literary features of this passage include repetitions of 'the ark of the lord', and the 'heavy hand' of the protagonist firmly in control. Also the 'guilt offering' of the Philistines highlight their bid to appease an angry god. Some
historical points of interest may also enrich this reading. Idols of the period were made of clay parts and joined together, head and limbs to trunk. Plundering of a tribal deity would signify complete defeat, the head and limbs being the prize. A prostrate, dismembered and decapitated Dagon was a knock out in round one. Stepping on a threshold (the floor beam that keeps doors from swinging out) was superstitiously regarded as inviting in demons. Dagon's impotence was clear. The coincidence of a rodent infestation and sores (which can also be translated hemorrhoids or tumors) suggests the Bubonic plague - which results in lymphatic swellings of the groin and death if untreated. The Israelites who were killed in the eyeballing of the ark must have been struck for more than just an incidental glance (Exo 19:21; Lev 10:1-3; Num 4:4,5,15,20).
Lymphatic swellings in the rodent-transmitted Bubonic plague - from Wikipedia
This
narrative on its own shows God to have no equal amongst deities of the day, single-handedly subduing the entire Philistine population with severe judgement and compelling a penitent handover of the ark to its rightful place amid his chosen. The return, though an occasion for rejoicing, is marked with a grim reminder to sinful people that his holiness is not to be trivialised or trifled with. Coupled with the initiation of Samuel the prophet-priest-judge and fresh outpouring of revelation in chapters 1-4, a new beginning is anticipated.
No doubt, a Jewish reader in the
time of the exile would be able to root his confidence in such historical events. His God is unmatched among the innumerable gods of Babylon and more than capable of defending his glory as well as the dignity and welfare of his covenant people. And the ark stored in the treasure house of Nebuchadnezzar will surely regain its place. Yet this confidence must be accompanied by an appropriate awe of His holiness and remorse for the sin of the nation.
The larger biblical witness enlarges and personalises this reality. The ark in OT history containing the tablets of the Law (Deut 10:5) symbolizes His powerful presence (Ps 132:8, 2 Chr 6:41, Ps 78:61) and judicial rule from the sanctuary of his temple. Its presence brought blessing (1 Chr 13:14) and its mishandling brought severe judgement (1 Chr 13:9-10). Later, the prophet Jeremiah paradoxically gazes far forward to a time when all peoples, freed from sin, are united under God's benevolent rule, basking in His presence and no longer requiring or missing the ark (Jer 3:14-18). The NT ties it together when it shows that this is achieved by Christ's blood metaphorically poured out on the ark's atonement cover (Rom 3:25*). When the curtain is raised to reveal his consummated kingdom, all who are saved by His blood will behold its glory unhindered in the celestial heaven (Rev 11:19).
Can we possibly be moved to more awe, humility, gratefulness and hope all at once?
*see
NET Bible notes on the dual metaphor of Christ's blood as atoning sacrifice, and Christ as the atonement cover (aka mercy seat) upon which the sacrifice is poured.