David (c.1037 BC - 967 BC; reigned Judah c.1007 BC - 1005 BC, Judah and Israel c.1005 BC - 967 BC; Hebrew: דָּוִד, Standard Davíd Tiberian Dāwíð, Arabic: داوود or داود, Dāwūd, "beloved") was the second king of the united Kingdom of Israel. He is depicted as a righteous king—although not without fault—as well as an acclaimed warrior, musician and poet (he is traditionally credited with the authorship of many of the Psalms). His life and reign, as recorded in the Hebrew Bible's books of Samuel (from I Samuel 16 onwards) and Chronicles, have been of central importance to Jewish and Christian culture.
God withdraws his favor from King Saul and sends the prophet Samuel to Jesse, "for I have provided for myself a king among his sons." The choice falls upon David, the youngest son, who is guarding his father's sheep: "He was ruddy, and fine in appearance with handsome features. And the LORD said [to Samuel], 'Anoint him; for this is he.'"
Saul is tormented by an evil spirit. His servants suggest he send for David, "skillful in playing [the harp], a man of valor, a man of war, prudent in speech, and a man of good presence; and the LORD is with him." So David enters Saul's service, and finds favour in his sight, "and whenever the evil spirit was upon Saul, David took the harp and played it with his hand; so Saul was refreshed, and was well, and the evil spirit departed from him."