Source · the work in full

Rashi on the Prophets and Writings

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

Jeremiah 47

concerning the Philistines Heb. אל פלישתים [lit.] to the Philistines.
before Pharaoh struck Gaza When Nebuchadnezzar besieged Jerusalem in the tenth year of Zedekiah, Pharaoh’s army came forth from Egypt, and the Chaldeans withdrew from Jerusalem. Pharaoh heard, invaded Gaza and returned to his land. In Seder Olam (ch. 26).

the stamping Heb. שעטת. There is no similar [word in Scripture]. And Jonathan rendered it: from the steps.
from the noise of his chariots Heb. מרעש לרכבו [lit.] from the noise to his chariots.
his wheels The wheels of his chariots.
fathers did not turn to sons to save them.

to cut off from Tyre and Zidon The Philistines were aiding them against their enemies.
the island of Caphtor (Isls in O.F.)

has become a waste Heb. נדמתה.
will you tear your flesh Will you tear your flesh in mourning and in weeping?

sword of the Lord Which the Holy One, Blessed be He, brings to the world.
rest Heb. הרגעי, an expression of מרגועַ rest.

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.