1 Chronicles 12:17

12:17 David went out to meet them and said, “If you come to me in peace and want to help me, then I will make an alliance with you. But if you come to betray me to my enemies when I have not harmed you, may the God of our ancestors take notice and judge!”

1 Chronicles 14:8

14:8 When the Philistines heard that David had been anointed king of all Israel, all the Philistines marched up to confront him. When David heard about it, he marched out against them.