1 Samuel 27:1–28:1
Then David said in his heart, “Now I shall perish one day by the hand of Saul. There is nothing better for me than that I should escape to the land of the Philistines. Then Saul will despair of seeking me any longer within the borders of Israel, and I shall escape out of his hand.” So David arose and went over, he and the six hundred men who were with him, to Achish the son of Maoch, king of Gath. And David lived with Achish at Gath, he and his men, every man with his household, and David with his two wives, Ahinoam of Jezreel, and Abigail of Carmel, Nabal’s widow. And when it was told Saul that David had fled to Gath, he no longer sought him.
Then David said to Achish, “If I have found favor in your eyes, let a place be given me in one of the country towns, that I may dwell there. For why should your servant dwell in the royal city with you?” So that day Achish gave him Ziklag. Therefore Ziklag has belonged to the kings of Judah to this day. And the number of the days that David lived in the country of the Philistines was a year and four months.
Now David and his men went up and made raids against the Geshurites, the Girzites, and the Amalekites, for these were the inhabitants of the land from of old, as far as Shur, to the land of Egypt. And David would strike the land and would leave neither man nor woman alive, but would take away the sheep, the oxen, the donkeys, the camels, and the garments, and come back to Achish. When Achish asked, “Where have you made a raid today?” David would say, “Against the Negeb of Judah,” or, “Against the Negeb of the Jerahmeelites,” or, “Against the Negeb of the Kenites.” And David would leave neither man nor woman alive to bring news to Gath, thinking, “lest they should tell about us and say, ‘So David has done.’ ” Such was his custom all the while he lived in the country of the Philistines. And Achish trusted David, thinking, “He has made himself an utter stench to his people Israel; therefore he shall always be my servant.”
In those days the Philistines gathered their forces for war, to fight against Israel. And Achish said to David, “Understand that you and your men are to go out with me in the army.”
1 Samuel 29:1–30:6
Now the Philistines had gathered all their forces at Aphek. And the Israelites were encamped by the spring that is in Jezreel. As the lords of the Philistines were passing on by hundreds and by thousands, and David and his men were passing on in the rear with Achish, the commanders of the Philistines said, “What are these Hebrews doing here?” And Achish said to the commanders of the Philistines, “Is this not David, the servant of Saul, king of Israel, who has been with me now for days and years, and since he deserted to me I have found no fault in him to this day.” But the commanders of the Philistines were angry with him. And the commanders of the Philistines said to him, “Send the man back, that he may return to the place to which you have assigned him. He shall not go down with us to battle, lest in the battle he become an adversary to us. For how could this fellow reconcile himself to his lord? Would it not be with the heads of the men here? Is not this David, of whom they sing to one another in dances,
‘Saul has struck down his thousands,
and David his ten thousands’?”
Then Achish called David and said to him, “As the Lord lives, you have been honest, and to me it seems right that you should march out and in with me in the campaign. For I have found nothing wrong in you from the day of your coming to me to this day. Nevertheless, the lords do not approve of you. So go back now; and go peaceably, that you may not displease the lords of the Philistines.” And David said to Achish, “But what have I done? What have you found in your servant from the day I entered your service until now, that I may not go and fight against the enemies of my lord the king?” And Achish answered David and said, “I know that you are as blameless in my sight as an angel of God. Nevertheless, the commanders of the Philistines have said, ‘He shall not go up with us to the battle.’ Now then rise early in the morning with the servants of your lord who came with you, and start early in the morning, and depart as soon as you have light.” So David set out with his men early in the morning to return to the land of the Philistines. But the Philistines went up to Jezreel.
Now when David and his men came to Ziklag on the third day, the Amalekites had made a raid against the Negeb and against Ziklag. They had overcome Ziklag and burned it with fire and taken captive the women and all who were in it, both small and great. They killed no one, but carried them off and went their way. And when David and his men came to the city, they found it burned with fire, and their wives and sons and daughters taken captive. Then David and the people who were with him raised their voices and wept until they had no more strength to weep. David’s two wives also had been taken captive, Ahinoam of Jezreel and Abigail the widow of Nabal of Carmel. And David was greatly distressed, for the people spoke of stoning him, because all the people were bitter in soul, each for his sons and daughters. But David strengthened himself in the Lord his God.
The Holy Bible: English Standard Version, (Wheaton, IL: Crossway Bibles, 2016).