One of David’s darkest hours comes about when he seems to completely forget every chapter that comes before this one. Just like us.
1 Samuel 27:1-7; 12
But David thought to himself, “One of these days I will be destroyed by the hand of Saul. The best thing I can do is to escape to the land of the Philistines. Then Saul will give up searching for me anywhere in Israel, and I will slip out of his hand.” So David and the six hundred men with him left and went over to Achish son of Maoch king of Gath. David and his men settled in Gath with Achish. Each man had his family with him, and David had his two wives: Ahinoam of Jezreel and Abigail of Carmel, the widow of Nabal. When Saul was told that David had fled to Gath, he no longer searched for him.
Then David said to Achish, “If I have found favor in your eyes, let a place be assigned to me in one of the country towns, that I may live there. Why should your servant live in the royal city with you?”
So on that day Achish gave him Ziklag, and it has belonged to the kings of Judah ever since. David lived in Philistine territory a year and four months.
Achish trusted David and said to himself, “He has become so odious to his people, the Israelites, that he will be my servant forever.”
New International Version, 1984 Edition