The Ark of the LORD remained in Philistine territory seven months in all.
Then the Philistines called in their priests and diviners and asked them, "What should we do about the Ark of the LORD? Tell us how to return it to its own land."
"Send the Ark of the God of Israel back, along with a gift," they were told. "Send a guilt offering so the plague will stop. Then, if the plague doesn't stop, you will know that God didn't send the plague after all."
"What sort of guilt offering should we send?" they asked.And they were told, "Since the plague has struck both you and your five rulers, make five gold tumors and five gold rats, just like those that have ravaged your land.
Make these things to show honor to the God of Israel. Perhaps then he will stop afflicting you, your gods, and your land.
Don't be stubborn and rebellious as Pharaoh and the Egyptians were. They wouldn't let Israel go until God had ravaged them with dreadful plagues.
Now build a new cart, and find two cows that have just had calves. Make sure the cows have never been yoked to a cart. Hitch the cows to the cart, but shut their calves away from them in a pen.
Put the Ark of the LORD on the cart, and beside it place a chest containing the gold rats and gold tumors. Then let the cows go wherever they want.
If they cross the border of our land and go to Beth-shemesh, we will know it was the LORD who brought this great disaster upon us. If they don't, we will know that the plague was simply a coincidence and was not sent by the LORD at all."
So these instructions were carried out. Two cows with newborn calves were hitched to the cart, and their calves were shut up in a pen.
Then the Ark of the LORD and the chest containing the gold rats and gold tumors were placed on the cart.
And sure enough, the cows went straight along the road toward Beth-shemesh, lowing as they went. The Philistine rulers followed them as far as the border of Beth-shemesh.
The people of Beth-shemesh were harvesting wheat in the valley, and when they saw the Ark, they were overjoyed!
The cart came into the field of a man named Joshua and stopped beside a large rock. So the people broke up the wood of the cart for a fire and killed the cows and sacrificed them to the LORD as a burnt offering.
Several men of the tribe of Levi lifted the Ark of the LORD and the chest containing the gold rats and gold tumors from the cart and placed them on the large rock. Many burnt offerings and sacrifices were offered to the LORD that day by the people of Beth-shemesh.
The five Philistine rulers watched all this and then returned to Ekron that same day.
The five gold tumors that were sent by the Philistines as a guilt offering to the LORD were gifts from the rulers of Ashdod, Gaza, Ashkelon, Gath, and Ekron.
The five gold rats represented the five Philistine cities and their surrounding villages, which were controlled by the five rulers. The large rock at Beth-shemesh, where they set the Ark of the LORD, still stands in the field of Joshua as a reminder of what happened there.
But the LORD killed seventy men from Beth-shemesh because they looked into the Ark of the LORD. And the people mourned greatly because of what the LORD had done.
References for 1 Samuel 6:19
"Who is able to stand in the presence of the LORD, this holy God?" they cried out. "Where can we send the Ark from here?"
So they sent messengers to the people at Kiriath-jearim and told them, "The Philistines have returned the Ark of the LORD. Please come here and get it!"