Isaiah54:1

רָנִּי עֲקָרָה לֹא יָלָדָה פִּצְחִי רִנָּה וְצַהֲלִי לֹא־חָלָה כִּי־רַבִּים בְּנֵי־שׁוֹמֵמָה מִבְּנֵי בְעוּלָה אָמַר יְהוָה׃

Sing, barren one who did not bear, break into song and rejoice, you who did not labour, for the children of the desolate one are more than the children of the married one, said the Eternal.

Isaiah 54:1

רָנִּי עֲקָרָה לֹא

Yeshayahu / Isaiah 54:1 · Pshat

Isaiah 54:1

רָנִּי עֲקָרָה לֹא יָלָדָה פִּצְחִי רִנָּה וְצַהֲלִי לֹא־חָלָה כִּי־רַבִּים בְּנֵי־שׁוֹמֵמָה מִבְּנֵי בְעוּלָה אָמַר יְהוָה׃

Sing, barren one who did not bear, break into song and rejoice, you who did not labour, for the children of the desolate one are more than the children of the married one, said the Eternal.

Pshat פְּשָׁט

A city without children

Sometimes a house empties: the children have left, the noise has died down. It seems it will always be so. The prophet speaks to a city that feels exactly that way.

Rashi: the barren one is Jerusalem, which was like one who had not borne. "The married one" is the city of Edom. Shadal: the prophet compares Jerusalem to a wife, the Almighty to a husband, and the people to her children. She is not truly barren: she already had children, but in exile it is as if she never bore.

How Rashi and Shadal explain it

Rashi Sing, barren one

Jerusalem, which was like one who had not borne.

Rashi You who did not labor (לֹא חָלָה)

This word is about birth: a woman gives birth in pangs (חִיל) and travail.

Rashi Than the children of the married one

The daughter of Edom.

Shadal Sing, barren one who did not bear

It speaks of Jerusalem and compares it to a wife: the Almighty is her husband, and Israel her children. And it speaks of the future redemption.

Shadal Barren one who did not bear

Not truly barren: she had already borne children in days of old. But in the days of exile she is like a barren woman, as if she had never borne or labored, for she is desolate and without children.

Takeaway

This haftarah is the fifth of the seven "haftarot of consolation," read on the Shabbatot after the Ninth of Av. A haftarah is a passage from the Prophets read in the synagogue after the Torah portion.
חָלָה ("labored") and חִיל ("pangs") come from one root. Rashi explains the rare word through a close one.
Edom in Rashi is an image of Rome and the nations under whose rule the people lived in exile. It is "married": the city is full of inhabitants.
Targum Yonatan names the barren one Jerusalem outright (Targum, Yeshayahu / Isaiah 54:1). Rashi and Shadal read the verse the same way.