Saul tried to pin David to the wall with the javelin, but David eluded him, and the javelin struck the wall. David fled and escaped that night.
In context
8War broke out again, and David went out and fought the Philistines. He struck them with such a heavy blow that they fled before him. 9Then an evil spirit from Yahweh came upon Saul as he sat in his house with his javelin in his hand, while David was playing the lyre. 10Saul tried to pin David to the wall with the javelin, but David eluded him, and the javelin struck the wall. David fled and escaped that night. 11Saul sent messengers to David’s house to watch it and kill him in the morning. But Michal, David’s wife, warned him, “If you do not escape tonight, tomorrow you will be dead.” 12So Michal let David down through a window, and he fled and escaped.