Three of the Thirty chiefs went down to David in the cave of Adullam during the harvest, while a Philistine clan was encamped in the Valley of Rephaim.
The Philistines too had raided the cities of the Shephelah and the Negeb of Judah; they captured Beth-shemesh, Aijalon, Gederoth, Soco and its dependencies, Timnah and its dependencies, and Gimzo and its dependencies, and settled there.