Source · the work in full

Rashi on the Prophets and Writings

CC BY · The Judaica Press Complete Tanach, trans. A. J. Rosenberg
Chapter 149

Psalms 149

Lofty praises of God in their throats and they will be for them a double-edged sword.

with chains Heb. בזקים, chains.

a written judgment (Ezek. 2:14) “And I shall lay My vengeance, etc.” If you ask [challenge] that Ezekiel was not yet born when David said this, [I will answer that] David prophesied about the end of the redemption, and when the end comes, the judgment will have been written for a long time.

You arrive at the cited line; the whole work is yours to read around it. The text is set from the cited public-domain edition.