27 And David said in his heart, “Now I shall perish someday by the hand of Saul. There is nothing better for me than that I should speedily escape to the land of the Philistines; and Saul will despair of me, to seek me anymore in any part of Israel. So I shall escape out of his hand.” 2 Then David arose and went over with the six hundred men who werewith him to Achish the son of Maoch, king of Gath. 3 So David dwelt with Achish at Gath, he and his men, each man with his household, andDavid with his two wives, Ahinoam the Jezreelitess, and Abigail the Carmelitess, Nabal’s widow. 4 And it was told Saul that David had fled to Gath; so he sought him no more.
5 Then David said to Achish, “If I have now found favor in your eyes, let them give me a place in some town in the country, that I may dwell there. For why should your servant dwell in the royal city with you?” 6 So Achish gave him Ziklag that day. Therefore Ziklag has belonged to the kings of Judah to this day. 7 Now the time that David dwelt in the country of the Philistines was one full year and four months.
8 And David and his men went up and raided the Geshurites, the Girzites,and the Amalekites. For those nations were the inhabitants of the land from of old, as you go to Shur, even as far as the land of Egypt. 9 Whenever David attacked the land, he left neither man nor woman alive, but took away the sheep, the oxen, the donkeys, the camels, and the apparel, and returned and came to Achish. 10 Then Achish would say, “Where have you made a raid today?” And David would say, “Against the southern area of Judah, or against the southern area of the Jerahmeelites, or against the southern area of the Kenites.” 11 David would save neither man nor woman alive, to bring news to Gath, saying, “Lest they should inform on us, saying, ‘Thus David did.’” And thus washis behavior all the time he dwelt in the country of the Philistines. 12 So Achish believed David, saying, “He has made his people Israel utterly abhor him; therefore he will be my servant forever.”
29 Then the Philistines gathered together all their armies at Aphek, and the Israelites encamped by a fountain which is in Jezreel. 2 And the lords of the Philistines passed in review by hundreds and by thousands, but David and his men passed in review at the rear with Achish. 3 Then the princes of the Philistines said, “What are these Hebrews doing here?”
And Achish said to the princes of the Philistines, “Is this not David, the servant of Saul king of Israel, who has been with me these days, or these years? And to this day I have found no fault in him since he defected to me.”
4 But the princes of the Philistines were angry with him; so the princes of the Philistines said to him, “Make this fellow return, that he may go back to the place which you have appointed for him, and do not let him go down with us to battle, lest in the battle he become our adversary. For with what could he reconcile himself to his master, if not with the heads of these men? 5 Is this not David, of whom they sang to one another in dances, saying:
‘Saul has slain his thousands,
And David his ten thousands’?”
6 Then Achish called David and said to him, “Surely, as the Lord lives, you have been upright, and your going out and your coming in with me in the army is good in my sight. For to this day I have not found evil in you since the day of your coming to me. Nevertheless the lords do not favor you. 7 Therefore return now, and go in peace, that you may not displease the lords of the Philistines.”
8 So David said to Achish, “But what have I done? And to this day what have you found in your servant as long as I have been with you, that I may not go and fight against the enemies of my lord the king?”
9 Then Achish answered and said to David, “I know that you are as good in my sight as an angel of God; nevertheless the princes of the Philistines have said, ‘He shall not go up with us to the battle.’ 10 Now therefore, rise early in the morning with your master’s servants who have come with you. And as soon as you are up early in the morning and have light, depart.”
11 So David and his men rose early to depart in the morning, to return to the land of the Philistines. And the Philistines went up to Jezreel.
-1 Samuel 27, 29