Saul tried to pin him to the wall with his spear, but David eluded him as Saul drove the spear into the wall. That night David made good his escape.
NIV
Saul sought to pin David to the wall with the spear, but he slipped away, so that Saul struck the spear into the wall. Then David fled and escaped that night.
AMP
And Saul sought to smite David even to the wall with the javelin: but he slipped away out of Saul's presence, and he smote the javelin into the wall: and David fled, and escaped that night.
KJV