1 Samuel 18:11-16 New King James Version (NKJV)

11. And Saul cast the spear, for he said, “I will pin David to the wall!” But David escaped his presence twice.

12. Now Saul was afraid of David, because the Lord was with him, but had departed from Saul.

13. Therefore Saul removed him from his presence, and made him his captain over a thousand; and he went out and came in before the people.

14. And David behaved wisely in all his ways, and the Lord was with him.

15. Therefore, when Saul saw that he behaved very wisely, he was afraid of him.

16. But all Israel and Judah loved David, because he went out and came in before them.

1 Samuel 18