The people of Ziph went to Saul at Gibeah and told him, “David's hiding on the hill of Hakilah, opposite the wastelands.”
So Saul went to the Desert of Ziph along with three thousand specially-picked men from Israel to search for David there. Saul set up camp beside the road at the hill of Hachilah opposite the wastelands, near to where David was living in the desert. When he realized that Saul had come looking for him there, he sent out spies and found out Saul had definitely arrived.
One night* “One night”: implied. David got up and went over to Saul's camp and saw where Saul was sleeping, along with Abner, son of Ner, the army commander. Saul was lying in the middle of the camp with his men all around him. David asked Ahimelech the Hittite and Abishai, son of Zeruiah, Zeruiah was David's sister and mother of Joab, Abishai, and Asahel. Joab's brother, “Who wants to go with me into the camp to Saul?”
“I'll go with you,” Abishai replied.
So David and Abishai went to the army camp at night. Saul was sleeping there in the camp with his spear stuck in the ground beside his head, with Abner and his men sleeping around him.
Abishai said to David, “God has handed your enemy over to you today. So please let me spear him to the ground in one go. I won't need to do it twice!”
But David said to Abishai, “No, don't kill him! Who can attack the Lord's anointed one and not be guilty of a crime? 10 As the Lord lives, the Lord himself will kill him. Either his time will come and he'll die, or he will go into battle and be killed. 11 May the Lord prevent me from attacking the Lord's anointed one. Just pick up the spear and water jug beside his head, and let's go.”
12 David took the spear and water jug beside Saul's head, and they left. Nobody saw anything; nobody knew what had happened; nobody woke up. Everybody stayed asleep, because the Lord had made them fall into a deep sleep.
13 Then David went back over to the other side, and stood on top of the hill far enough away—there was a considerable distance between them. 14 He shouted down to the army and Abner, son of Ner, “Aren't you going to answer me, Abner?”
“Who is that shouting, disturbing the king?” Abner called back.
15 David called to Abner, “Aren't you meant to be this great man? Is there anyone in Israel who is better than you? So why didn't you protect your master the king when someone came to kill him? 16 You haven't done well at all. As the Lord lives, you all deserve to die, because you did not protect your master, the Lord's anointed. Take a look around. Where are the king's spear and water jug that were beside his head?”
17 Saul recognized David's voice and asked, “Is that you speaking, David, my son?”
“Yes it's me, my lord and king,” David replied.
18 “Why is my lord hunting me, his servant? What is it that I've done? What crime am I guilty of?” he continued. 19 “Please listen to me, my lord and king. If the Lord has made you angry with me, then may he be happy to accept an offering. But if it's men that have done it, may they be cursed before the Lord! For all this while they've been driving me away from living among God's chosen people, telling me, ‘Go away and worship other gods.’ 20 Please don't let me die so far from the presence of the Lord. The king of Israel has come to chase down one little flea, hunting me like someone who hunts a partridge in the mountains.”
21 “I've done wrong,” Saul replied, “Come back, David, my son. I won't ever try to harm you again, because you valued me and spared my life today. I've been so stupid! I've made a big mistake!”
22 “I have the king's spear here,” said David. “Send one of your men over to collect it. 23 The Lord rewards all those who do what is right and who are trustworthy. The Lord handed you over to me today, but I refused to harm the Lord's anointed one. 24 In the same way as I valued your life today, may the Lord value my life, and may he rescue me from all my troubles.”
25 Saul said to David, “May you be blessed, David my son. You will accomplish a great deal and always be successful.” David left, and Saul went back home.

*26:5 “One night”: implied.

26:6 Zeruiah was David's sister and mother of Joab, Abishai, and Asahel.