After Joab had slain thousands, the Israelites without, at the very moment when they were beginning to mourn their general as dead, saw blood issue from the city, and joyfully they cried out with one accord: "Hear, O Israel, the Lord is our God, the Lord is One." Joab mounted a high tower, and in stentorian tones shouted: "The Lord will not forsake his people." Inspired with high and daring courage, the Israelites demanded permission to assault the city and capture it.

As Joab turned to descend from the tower, he noticed that six verses of a Psalm were inscribed on his foot, the first verse running thus: "The Lord answers thee in the day of trouble, the name of the God of Jacob is thy defense." Later David added three verses and completed the Psalm. Thereupon the Israelites took the Amalekite capital, destroyed the heathen temples in the city, and slew all its inhabitants, except the king, whom, with his crown of pure gold on his head, they brought before David.