1 Samuel 23:29

Overview - 1 Samuel 23
David, enquiring of the Lord by Abiathar, rescues Keilah.
God shewing him the coming of Saul, and the treachery of the Keilites, he escapes from Keilah.
14 In Ziph Jonathan comes and comforts him.
19 The Ziphites discover him to Saul.
25 At Maon he is rescued from Saul by the invasion of the Philistines.
29 He dwells at En-gedi.
Treasury of Scripture Knowledge

1 Samuel 23:29  (King James Version)
And David went up from thence, and dwelt in strong holds at Engedi.

The district around En-gedi, near the western coast of the Dead Sea, is reported by travellers to be a mountainous territory, filled with caverns; and consequently, proper for David in his present circumstances
Dr. Lightfoot thinks this was the wilderness of Judah, in which David was when he penned the 63rd Psalm, which breathes as much pious and devout affection as almost any of his Psalms; for in all places and in all conditions he still kept up his communion with God.--If Christians knew their privileges better, and acted up thereto, there would be less murmuring at the dark dispensations of Divine Providence.
24:1 Genesis 14:7 ; Joshua 15:62 ; 2 Chronicles 20:2 ; Solomon 1:14 ; Ezekiel 47:10