For by thee I have run through a troop; and by my God have I leaped over a wall. I have run through a troop - This may relate to some remarkable victory, and the taking of some fortified place, possibly Zion, from the Jebusites. See the account 2 Samuel 5:6-8 (note).
Related Commentaries of Psalms 18:29
Psalms 18:29
29 For by thee I have run through a troop; and by my God have I leaped over a wall.