Zecharyah / Zechariah 3:2 · Drash
וַיֹּאמֶר יְהוָה אֶל־הַשָּׂטָן יִגְעַר יְהוָה בְּךָ הַשָּׂטָן וְיִגְעַר יְהוָה בְּךָ הַבֹּחֵר בִּירוּשָׁלִָם הֲלוֹא זֶה אוּד מֻצָּל מֵאֵשׁ׃
And the Eternal said to the Satan: "The Eternal will shout at you, Satan! The Eternal who chose Jerusalem will shout at you! Is not this a brand plucked from the fire?"
Drash דְּרָשׁ
Singed garments
Sometimes a person suffers not for their own deeds, but because they were near the deeds of others. Do they answer for them?
Talmud (Sanhedrin 93a): the false prophets and Yehoshua (Joshua) were thrown into the fire. They were burned, and the clothes of Yehoshua the high priest were singed. Pirkei DeRabbi Eliezer: the false prophets in Babylon deceived the wives of the Chaldeans, and the king ordered them burned. They said: "Yehoshua was with us in everything", hoping he would save them, and the king ordered all three burned. The angel Michael saved Yehoshua, and his hair was singed for the sins of his companions.
How Talmud, Sanhedrin and Pirkei DeRabbi Eliezer explain it
Talmud, Sanhedrin The Eternal will shout at you
They brought them down and threw them into the fire. They were burned, and the clothes of Yehoshua the high priest were singed, as it says: "And He showed me Yehoshua the high priest standing before the angel of the Eternal" (Zecharyah / Zechariah 3:1), and it is written: "And the Eternal said to the Satan: The Eternal will shout at you" (Zecharyah / Zechariah 3:2).
Pirkei DeRabbi Eliezer A brand plucked from the fire
Rabbi Tachna says: Israel went into exile to Babylon and did not leave their evil deeds. Achav son of Kolayah and Tzidkiyahu son of Maaseyah became healers, false healers: they treated the wives of the Chaldeans and lay with them. The king heard and ordered them burned. The two of them said: "Let us say that Yehoshua son of Yehotzadak was with us, and he will save us from burning in the fire." They said to him: "My lord the king, this man was with us in everything." And the king ordered all three of them burned. The angel Michael came down, saved Yehoshua son of Yehotzadak from burning in the fire and raised him before the Throne of Glory, as it says: "And He showed me Yehoshua son of Yehotzadak". And those two were burned in the fire, and a curse was taken from them. It is not written "whom the king of Babylon cursed (קִלְלָם) in the fire", but "whom he roasted (קָלָם)" (Yirmeyahu / Jeremiah 29:22). So his hair was singed because of their sins, as it says: "In the pride of the wicked the poor man burns" (Tehillim / Psalms 10:2). "Is not this a brand plucked from the fire?"
Takeaway
The king of Babylon here is Nevuchadnetzar (Nebuchadnezzar), who led Judah into exile (Sanhedrin 93a).
Pirkei DeRabbi Eliezer is a midrash attributed to Rabbi Eliezer ben Hyrcanus, a sage of the Mishnah.
Right after this verse it says: "And Yehoshua was clothed in soiled garments" (Zecharyah / Zechariah 3:3).