When Saul came back from [fighting] the Philistines, he was told "Now David is in the desert near En Gedi."
Then Saul took 3,000 of the best-trained men from all Israel and went to search for David and his men on the Rocks of the Wild Goats.
He came to some sheep pens along the road where there was a cave. Saul went into [it] to relieve himself while David and his men were sitting further back in the cave.
David's men told him, "Today is the day the LORD referred to when he said, 'I'm going to hand your enemy over to you. You will do to him whatever you think is right.' " David quietly got up and cut off the border of Saul's robe.
But afterward, David's conscience bothered him because he had cut off the border of Saul's robe.
He said to his men, "It would be unthinkable for me to raise my hand against His Majesty, the LORD's anointed king, since he is the LORD's anointed."
So David stopped his men by saying this to them and didn't let them attack Saul. Saul left the cave and went out onto the road.
Later, David got up, left the cave, and called to Saul, "Your Majesty!" When Saul looked back, David knelt down with his face touching the ground.
David asked Saul, "Why do you listen to rumors that I am trying to harm you?
Today you saw how the LORD handed you over to me in the cave. Although I was told to kill you, I spared you, saying, 'I will not raise my hand against Your Majesty because you are the LORD's anointed.'
My master, look at this! The border of your robe is in my hand! Since I cut off the border of your robe and didn't kill you, you should know and be able to see I mean no harm or rebellion. I haven't sinned against you, but you are trying to ambush me in order to take my life.
May the LORD decide between you and me. May the LORD take revenge on you for what you did to me. However, I will not lay a hand on you.
It's like people used to say long ago, 'Wickedness comes from wicked people.' But I will not lay a hand on you.
Against whom has the king of Israel come out? Whom are you pursuing? A dead dog? One flea?
So the LORD must be the judge. He will decide between you and me. He will watch and take my side in [this] matter and set me free from you."
When David finished saying this, Saul asked, "Is that you speaking, my servant David?" and Saul cried loudly.
He told David, "You are more righteous than I. You treated me well while I treated you badly.
Today you have proved how good you've been to me. When the LORD handed me over to you, you didn't kill me.
When a person finds an enemy, does he send him away unharmed? The LORD will repay you completely for what you did for me today.
Now I know that you certainly will rule as king, and under your guidance the kingdom of Israel will prosper.
Swear an oath to the LORD for me that you will not wipe out my descendants or destroy my name in my father's family."
So David swore to Saul. Then Saul went home, and David and his men went to their fortified camp.