1 Samuel 23:18-28 MSG

18 Then the two of them made a covenant before God. David stayed at Horesh and Jonathan went home.
19 Some Ziphites went to Saul at Gibeah and said, "Did you know that David is hiding out near us in the caves and canyons of Horesh? Right now he's at Hakilah Hill just south of Jeshimon
20 So whenever you're ready to come down, we'd count it an honor to hand him over to the king."
21 Saul said, "God bless you for thinking about me
22 Now go back and check everything out. Learn his routines. Observe his movements - where he goes, who he's with. He's very shrewd, you know.
23 Scout out all his hiding places. Then meet me at Nacon and I'll go with you. If he is anywhere to be found in all the thousands of Judah, I'll track him down!"
24 So the Ziphites set out on their reconnaissance for Saul.
25 Saul and his men arrived and began their search. When David heard of it, he went south to Rock Mountain, camping out in the wilderness of Maon. Saul heard where he was and set off for the wilderness of Maon in pursuit.
26 Saul was on one side of the mountain, David and his men on the other. David was in full retreat, running, with Saul and his men closing in, about to get him.
27 Just then a messenger came to Saul and said, "Hurry! Come back! The Philistines have just attacked the country!"
28 So Saul called off his pursuit of David and went back to deal with the Philistines. That's how that place got the name Narrow Escape.