1 Samuel 29:2-9

As a the lords of the Philistines were passing on by hundreds and by thousands, and David and his men were passing on in the rear b 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 c now for days and years, and since he deserted to me d I have found no fault in him to this day.” But e 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 f to the place to which you have assigned him. He shall not go down with us to battle, g 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,

h Saul has struck down his thousands,
and David his ten thousands’?”

Then Achish called David and said to him, i “As the  Lord lives, you have been honest, and to me it seems right that j 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 k as an angel of God. Nevertheless, l the commanders of the Philistines have said, ‘He shall not go up with us to the battle.’
Copyright information for ESV