Source · the work in full

Rashi on the Prophets and Writings

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

Zechariah 10

Request rain from the Lord if you need it.
rain-clouds Clouds that bring rain
for each person, grass in the field For one man and for one grass that requires rain.

For the teraphim, etc., and the soothsayers envisioned lies, and dreamers who misled your forefathers, saying, “I dreamt.” They would encourage [your forefathers] to rebel against the Holy One, blessed be He. They spoke futility, and they spoke vanity, saying “peace” - but there was no peace.
Therefore, they traveled. I, however, am a true prophet for them.
they were humbled “to humble yourself before Me.” An expression of humility.

My wrath is kindled against the shepherds Against the kings of Greece.
upon the goats Against their princes, and so did Jonathan render it: My wrath was against the kings and upon the rulers I visit. The Greeks were likened to goats in (Dan. 8:21), “And the rough he-goat is the king of Greece.” Whoever wishes to explain the matter [otherwise] (not as referring to the kings of Greece) will say that הָעַתּוּדִים is an expression of princes, as in (Isa. 14:9), “It aroused the giants for you, all the chiefs of the earth.”
as His majestic horse in battle As the horse whose majesty is recognized in battle.

Out of them shall come the cornerstone Out of them shall come their kings; out of them shall come their princes, and out of them shall come those who wage their wars.

And they shall be like mighty men, treading the mire of the streets in battle This verse is inverted. It should be understood: And they shall be in battle, walking and treading people as mighty men tread the mire of the streets. treading as in (Ps. 60:14), “And He shall tread down our enemies,” and (Jer. 12:10) “They have trampled My field.”
and they shall shame the riders of horses The house of Judah shall shame the riders of horses who come to wage war with them.

And I will strengthen the house of Judah in the war against the Greeks.
and the house of Joseph I will save in the place where they were exiled - in Halah and in Habor in the days of Sennacherib.
And I will cause them to settle Like וְהוֹשַּׁבְתִּים, an expression of settling.
And they shall be as though I had not forsaken them As though I had never forsaken them.

I will whistle to them in the manner of those who whistle as a sign and a signal for those straying on their way to him.
and I will gather them at the time of the end in the future.
for I have redeemed them When I will redeem them.
And they shall multiply in exile as they multiplied in Egypt.

And I will sow them first among the peoples, as a person sows a seah to bring in many korim.
And they shall live with their children אֶת-בְנֵיהֶם

and the Lebanon This is the Temple.
and it shall not suffice for them Heb. וְלֹא יִמָּצֵא לָהֶם

And trouble shall pass through the sea And the trouble shall pass through Tyre, which is situated in the midst of the sea, it is the head of Edom.
and He shall strike The Holy One, blessed be He, Who is the One Who strikes the waves of the sea to sink Tyre.
all the depths of the river That is, Egypt.

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.