Oh how the OT reveals things about the nature and works of God that we don't understand just sticking to the NT ;)
1 Samuel 16:23. I do suggest you read the entire passage to know what's going on, but here's the pertinent passage.
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.
The Hebrew being, "evil".
Who wants to comment first? ;)
1] First off David was anointed by Samuel, and the Spirit came upon him.
2] the next verse tells us the Spirit departed from Saul
3] God is allowing Saul to be reprimanded, What happens when God lifts His hand from men, Job?
4] the presents and praise from David "in the true Spirit" cause the distressing spirit to diminish, Saul is hitching a ride on Davids anointing.
[sup]1[/sup] Now the LORD said to Samuel, “How long will you mourn for Saul, seeing I have rejected him from reigning over Israel? Fill your horn with oil, and go; I am sending you to Jesse the Bethlehemite. For I have provided Myself a king among his sons.”......................................................................
[sup]
13[/sup] Then Samuel took the horn of oil and anointed him in the midst of his brothers; and the Spirit of the LORD came upon David from that day forward. So Samuel arose and went to Ramah.
A Distressing Spirit Troubles Saul
[sup]14[/sup] But the Spirit of the LORD departed from Saul, and a distressing spirit from the LORD troubled him. [sup]15[/sup] And Saul’s servants said to him, “Surely, a distressing spirit from God is troubling you. [sup]16[/sup] Let our master now command your servants,
who are before you, to seek out a man
who is a skillful player on the harp. And it shall be that he will play it with his hand when the distressing spirit from God is upon you, and you shall be well.”
[sup]17[/sup] So Saul said to his servants, “Provide me now a man who can play well, and bring
him to me.”
[sup]18[/sup] Then one of the servants answered and said, “Look, I have seen a son of Jesse the Bethlehemite,
who is skillful in playing, a mighty man of valor, a man of war, prudent in speech, and a handsome person; and the LORD
is with him.”
[sup]19[/sup] Therefore Saul sent messengers to Jesse, and said, “Send me your son David, who
is with the sheep.” [sup]20[/sup] And Jesse took a donkey
loaded with bread, a skin of wine, and a young goat, and sent
them by his son David to Saul. [sup]21[/sup] So David came to Saul and stood before him. And he loved him greatly, and he became his armorbearer. [sup]22[/sup] Then Saul sent to Jesse, saying, “Please let David stand before me, for he has found favor in my sight.” [sup]23[/sup] And so it was, whenever the spirit from God was upon Saul, that David would take a harp and play
it with his hand. Then Saul would become refreshed and well, and the distressing spirit would depart from him.