Judges 15 records the Philistines entering Judah and encamping at Lehi in retaliation for Samson's actions against them. Three thousand men of Judah went to Samson and persuaded him to allow them to bind him and deliver him to the Philistines.
When Samson reached Lehi, the Philistines shouted against him, but the Spirit of the Lord came powerfully upon him and his bonds broke. Finding the fresh jawbone of a donkey, Samson used it to defeat one thousand Philistines.
After the battle Samson was desperately thirsty. God provided water from a hollow place at Lehi, and Samson named the spring En-hakkore, meaning the spring of the one who called.
Second Samuel 23 also places a battle involving David's warrior Shammah in the same general locality according to the traditional identification of the place.