When Saul returned from pursuing the Philistines, he was told, "David is in the wilderness near En-gedi."
References for 1 Samuel 24:1
So Saul took 3,000 of Israel's choice men and went to look for David and his men in front of the Rocks of the Wild Goats.
References for 1 Samuel 24:2
When Saul came to the sheep pens along the road, a cave was there, and he went in to relieve himself. David and his men were staying in the back of the cave,
References for 1 Samuel 24:3
so they said to him, "Look, this is the day the Lord told you about: 'I will hand your enemy over to you so you can do to him whatever you desire.'" Then David got up and secretly cut off the corner of Saul's robe.
Afterwards, David's conscience bothered him because he had cut off the corner of Saul's robe.
References for 1 Samuel 24:5
He said to his men, "I swear before the Lord: I would never do such a thing to my lord, the Lord's anointed. [I will never] lift my hand against him, since he is the Lord's anointed."
References for 1 Samuel 24:6
With these words David persuaded his men, and he did not let them rise up against Saul. Then Saul left the cave and went on his way.
References for 1 Samuel 24:7
After that, David got up, went out of the cave, and called to Saul, "My lord the king!" When Saul looked behind him, David bowed to the ground in homage.
David said to Saul, "Why do you listen to the words of people who say, 'Look, David intends to harm you'?
You can see with your own eyes that the Lord handed you over to me today in the cave. [Someone] advised [me] to kill you, but I took pity on you and said: I won't lift my hand against my lord, since he is the Lord's anointed.
References for 1 Samuel 24:10
See, my father! Look at the corner of your robe in my hand, for I cut it off, but I didn't kill you. Look and recognize that there is no evil or rebellion in me. I haven't sinned against you even though you are hunting me down to take my life.
"May the Lord judge between you and me, and may the Lord take vengeance on you for me, but my hand will never be against you.
References for 1 Samuel 24:12
As the old proverb says, 'Wickedness comes from wicked people.' My hand will never be against you.
References for 1 Samuel 24:13
Who has the king of Israel come after? What are you chasing after? A dead dog? A flea?
References for 1 Samuel 24:14
May the Lord be judge and decide between you and me. May He take notice and plead my case and deliver me from you."
References for 1 Samuel 24:15
When David finished saying these things to him, Saul replied, "Is that your voice, David my son?" Then Saul wept aloud
and said to David, "You are more righteous than I, for you have done what is good to me though I have done what is evil to you.
References for 1 Samuel 24:17
You yourself have told me today what good you did for me: when the Lord handed me over to you, you didn't kill me.
When a man finds his enemy, does he let him go unharmed?May the Lord repay you with good for what you've done for me today.
References for 1 Samuel 24:19
"Now I know for certain you will be king, and the kingdom of Israel will be established in your hand.
References for 1 Samuel 24:20
Therefore swear to me by the Lord that you will not cut off my descendants or wipe out my name from my father's family."
So David swore to Saul. Then Saul went back home, and David and his men went up to the stronghold.