The prophets suffered in much the same way because they represented the Lord’s Word and therefore his church, and the Lord was the quintessential prophet.
We can tell that the Lord was the quintessential prophet from the following passages:
Jesus said, “A prophet is not without honor except in his own country and in his own house.” (Matthew 13:57; Mark 6:4; Luke 4:24)
Jesus said, “It is not fitting for a prophet to die outside of Jerusalem.” (Luke 13:33)
They said of Jesus, “He is a prophet from Nazareth.” (Matthew 21:11; John 7:40, 41)
Fear came upon all, and they glorified God, saying that a great prophet had been raised up among them. (Luke 7:16)
A prophet will be raised up from among his people; they will obey his words. (Deuteronomy 18:15–19)
We can tell from the following passages that much the same was done to the prophets.
The prophet Isaiah was commanded to represent the state of the church by taking the sackcloth off his waist and the sandals off his feet and going naked and barefoot for three years as a sign and a wonder (Isaiah 20:2, 3).
The prophet Jeremiah was commanded to represent the state of the church by buying a belt and putting it around his waist without putting it in water, then hiding it in a crevice in the rocks near the Euphrates; after some days he found it ruined (Jeremiah 13:1–7).
The same prophet represented the state of the church by not taking a wife for himself in that place or entering the house of mourning or going out to grieve or going into the banquet house (Jeremiah 16:2, 5, 8).
The prophet Ezekiel was commanded to represent the state of the church by taking a barber’s razor to his head and his beard and then dividing the hair, burning a third of it in the middle of the city, striking a third with a sword, and scattering a third to the wind; also, he was told to bind a few hairs in his hems and eventually to throw a few into the midst of a fire and burn them (Ezekiel 5:1–4).
from The Lord, Section 15