There was another war between the Philistines and Israel, and David and his men went and fought the Philistines. During one of the battles David grew tired.
Near the beginning of harvest time three of “The Thirty” went down to Adullam Cave, where David was, while a band of Philistines was camping in Rephaim Valley.
Then the prophet went to King Ahab and said, “Go back and build up your forces and make careful plans, because the king of Syria will attack again next spring.”
and up through Hinnom Valley on the south side of the hill where the Jebusite city of Jerusalem was located. The border then proceeded up to the top of the hill on the west side of Hinnom Valley, at the northern end of Rephaim Valley.