1 Samuel 18:10-11
10-11The next day an ugly mood was sent by God to afflict Saul, who became quite beside himself, raving. David played his harp, as he usually did at such times. Saul had a spear in his hand. Suddenly Saul threw the spear, thinking, "I'll nail David to the wall." David ducked, and the spear missed. This happened twice.
12-16Now Saul feared David. It was clear that God was with David and had left Saul. So, Saul got David out of his sight by making him an officer in the army. David was in combat frequently. Everything David did turned out well. Yes, God was with him. As Saul saw David becoming more successful, he himself grew more fearful. He could see the handwriting on the wall. But everyone else in Israel and Judah loved David. They loved watching him in action.