Towards the beginning of harvest three of the thirty chiefs went down to join David at the cave of Adullam, while a band of Philistines was encamped in the valley of Rephaim.
David inquired of God, “Shall I go up against the Philistines? Will you give them into my hand?” The Lord said to him, “Go up, and I will give them into your hand.”
When the Philistines heard that David had been anointed king over all Israel, all the Philistines went up in search of David; and David heard of it and went out against them.
And it shall be as when reapers gather standing grain and their arms harvest the ears, and as when one gleans the ears of grain in the Valley of Rephaim.