A nd when they had left their gods there, David gave a commandment, and they were burned with fire.
The Philistines left their gods there. So David had them burned with fire.