David was in the Wilderness of Ziph at Horesh when he learned that Saul had come out to seek his life. Saul's son Jonathan set out and came to David at Horesh; there he strengthened his hand through the Lord.He said to him, "Do not be afraid; for the hand of my father Saul shall not find you; you shall be king over Israel, and I shall be second to you; my father Saul also knows that this is so." Then the two of them made a covenant before the Lord; David remained at Horesh, and Jonathan went home.
Then some Ziphites went up to Saul at Gibeah and said, "David is hiding among us in the strongholds of Horesh, on the hill of Hachilah, which is south of Jeshimon. Now, O king, whenever you wish to come down, do so; and our part will be to surrender him into the king's hand." Saul said, "May you be blessed by the Lord for showing me compassion! Go and make sure once more; find out exactly where he is, and who has seen him there; for I am told that he is very cunning. Look around and learn all the hiding places where he lurks, and come back to me with sure information. Then I will go with you; and if he is in the land, I will search him out among all the thousands of Judah." So they set out and went to Ziph ahead of Saul.
David and his men were in the wilderness of Maon, in the Arabah to the south of Jeshimon. Saul and his men went to search for him. When David was told, he went down to the rock and stayed in the wilderness of Maon. When Saul heard that, he pursued David into the wilderness of Maon.
Saul went on one side of the mountain, and David and his men on the other side of the mountain. David was hurrying to get away from Saul, while Saul and his men were closing in on David and his men to capture them. Then a messenger came to Saul, saying, "Hurry and come; for the Philistines have made a raid on the land." So Saul stopped pursuing David, and went against the Philistines; therefore that place was called the Rock of Escape.
David then went up from there, and lived in the strongholds of En-gedi.