The tension inside the royal palace reaches a boiling point as the king's inner turmoil erupts into a direct and violent assassination attempt. Saul hurls his spear with massive, deadly force. His explicit intention is to drive the weapon completely through David's body and pin him to the wall behind him [מצודת דוד, אלשיך].
Despite the sudden attack, David manages to slip away from his spot [רד״ק, מצודת ציון, ביאור שטיינזלץ]. This evasion is recognized as a truly miraculous rescue. At the time, David was deeply engrossed in playing music, his attention entirely focused on the rhythm. Yet, he still managed to sense the danger and dodge the weapon just a moment after it had left Saul's hand [רלב״ג, מצודת דוד].
Because David moves just in time, the weapon strikes only the wall. The impact highlights the sheer, terrifying power behind the throw. The force is so intense that the iron of the spear itself bends and is battered against the stones of the wall [אלשיך].
Having survived certain death and realizing that Saul is absolutely determined to kill him, David flees. His escape unfolds in stages. Initially, he runs away from the palace and retreats to his own home. Only later that same night, before dawn breaks, does he make his final escape from the city, acting on the urgent warning of his wife Michal [רד״ק, מצודת דוד, רלב״ג].