1 Samuel 16:13-23 ESV
Then Samuel took the horn of oil and anointed him in the midst of his brothers. And the Spirit of the LORD rushed upon David from that day forward. And Samuel rose up and went to Ramah.
Now the Spirit of the LORD departed from Saul, and a harmful spirit from the LORD tormented him. And Saul’s servants said to him, “Behold now, a harmful spirit from God is tormenting you. Let our lord now command your servants who are before you to seek out a man who is skillful in playing the lyre, and when the harmful spirit from God is upon you, he will play it, and you will be well.” So Saul said to his servants, “Provide for me a man who can play well and bring him to me.” One of the young men answered, “Behold, I have seen a son of Jesse the Bethlehemite, who is skillful in playing, a man of valor, a man of war, prudent in speech, and a man of good presence, and the LORD is with him.” Therefore Saul sent messengers to Jesse and said, “Send me David your son, who is with the sheep.” And Jesse took a donkey laden with bread and a skin of wine and a young goat and sent them by David his son to Saul. And David came to Saul and entered his service. And Saul loved him greatly, and he became his armor-bearer. And Saul sent to Jesse, saying, “Let David remain in my service, for he has found favor in my sight.” And whenever the harmful spirit from God was upon Saul, David took the lyre and played it with his hand. So Saul was refreshed and was well, and the harmful spirit departed from him.
ESV: English Standard Version 2016