First Samuel 23-24 associates En Gedi with David's flight from Saul. After David escaped from the wilderness of Maon, he lived in the strongholds of En Gedi. Saul pursued him there with three thousand chosen men.
In a cave near the "rocks of the wild goats," David had an opportunity to kill Saul but instead secretly cut off the corner of Saul's robe. David then demonstrated that he had refused to harm the Lord's anointed despite Saul's efforts to kill him.
En Gedi also appears poetically in Song of Solomon 1:14, where its vineyards provide an image of beauty and fertility. Second Chronicles 20 associates the surrounding area with the invasion faced by Jehoshaphat.