I had a dream in which God spoke to me. He told me: "See these ruins of the wall (in Jerusalem)? These ruins are not ruins, these are the righteous men of Israel." -i.e. righteous men of Israel are like a wall which protects Jerusalem. Questions:
Is there a metaphor of righteous men as Jerusalem's walls anywhere in the Torah?
Is there a metaphor of men and ruins in the Torah?
What are some possible interpetations of the dream based on your knowledge of the Torah?
Perhaps you were listening to the song "*Shomrei hafkid l'ircha kol hayom v'kol halaila" which in turn is inspired by the verse in Isaiah 62:6-7 "Upon your walls, O Jerusalem, I have set watchmen, Who shall never be silent By day or by night. O you, the LORD’s remembrancers (sic), Take no rest - And give no rest to Him, Until He establish Jerusalem And make her renowned on earth." Targum Yonasanidentifies these "watchmen" as the tzaddikim who constantly mourn the destruction of Jerusalem and the Beis HaMikdash.
The Talmud Megilah 3b towards the bottom discusses the law a walled city from the time of Joshua ben Nun (today only Jerusalem) that is destroyed. (This was very relevant from 1948-67). The Talmud first proposes that this means the wall was destroyed. This is rejected in favor of interpreting this as "a city that is destroyed from its Ten Idle Scholars in the Synagogue." Based on the principal that even a hava ameina (proposal that is not ultimately accepted) in the Talmud has significance, this might be taken as a hint that there is a connection between Walls (and their destruction) and Torah Scholars or Righteous Men.
Also consider "The death of the righteous is difficult like the destruction of the Holy Temple." (Rosh Hashana 18b)