18 At this same time the Philistines were raiding the towns in the western foothills and in southern Judah. They captured the cities of Beth Shemesh, Aijalon, and Gederoth, and the cities of Soco, Timnah, and Gimzo with their villages, and settled there permanently.