Yes, there are multiple instances in the Bible where David takes refuge in caves while fleeing from King Saul. Here are a few key references:
* 1 Samuel 22:1: "David therefore departed thence, and escaped to the cave of Adullam: and when his brethren and all his father's house heard it, they went down thither to him."
* 1 Samuel 24:3: "And he came to the sheepcotes by the way, where was a cave; and Saul went in to cover his feet: and David and his men remained in the sides of the cave."
* Psalm 57:1: (A Psalm of David, when he fled from Saul in the cave.) "Be merciful to me, O God, be merciful to me, for in you my soul takes refuge; in the shadow of your wings I will take refuge, till the storms of destruction pass by."
* Psalm 142:1: (A Maskil of David, when he was in the cave. A Prayer.) "With my voice I cry out to the Lord; with my voice I plead for mercy to the Lord."
These caves provided David with shelter and a place to hide from Saul, who was relentlessly pursuing him to kill him. Many believe these periods in the caves were times of deep reflection, prayer, and reliance on God for protection.