This is ascribed specifically to David. We should take notice how very much this is like a responsive song, heavy with Hebrew parallelism.
We have this basic confession: Were it not for Jehovah’s favor, there would be no Israel. Think just a moment about her history. How many times did the Patriarchs stand threatened by circumstances? And didn’t Israel face a very well-armed force trying to escape unarmed from several generations of slavery? And that generation that died in the wilderness? Remember those biting serpents, the droughts and lack of food? How many times should Israel as a nation have died by normal human reckoning? This sentiment is restated twice.
This sentiment is expressed in two ways. First, is the image of larger and better armed nations rising against them, described twice. Then the metaphor of an overwhelming flood is expressed three times. Make no mistake — this echoes the crossing of the Reed Sea and Jordan during flood stage.
The song then jumps into praise. God didn’t let them eat us alive. David compares this to a bird caught in a snare that escapes because the trap broke. It’s not that Israel was smart enough to stay out the traps, but that God kept breaking them free. Their salvation was in the “name of the Lord.” That’s a Hebrew turn of phrase that reminds us God operates as an eastern suzerain, and we are His vassals. This is all about His glory, His reputation. Let us remind everyone that this is our Creator.