Hast thou not considered how thy Lord dealt with Ad, the people of Irem, adorned with lofty buildings, the like whereof hath not been erected in the land; and with Thamud, who hewed the rocks in the valley into houses; and with Pharaoh, the contriver of the stakes: who had behaved insolently in the earth, and multiplied corruption therein? Wherefore thy Lord poured on them various kinds of chastisement…. (trans. George Sale)
I was amused, therefore, to read in Bob Curran's Lost Lands, Forgotten Realms (2011), a supposedly nonfictional examination of lost civilizations, the following passage about Iram and its alleged connection to the Arabian demons, the djinn:
Some traditions say that Irem was built by the djinn themselves before the time of Adam, and was later inhabited by men. This tradition stems from the name "Irem of the Pillars"--the ancient Arabic word for "pillar" corresponding to another meaning, namely "Old One." The name, therefore, was a city of the Old Ones (that is, the djinn).
Would it suprize you to learn that the "tradition" of a pre-human Iram is not a mythological one but rather a "tradition" invented by Lovecraft and the writers of the Cthulhu Mythos, and the "magickal" practitioners of Lovecraftian magick? Asenath Mason, in the Necronomicon Gnosis (2007) claims that "pillar" is "code" for "Old One," not an actual translation, but Curran has gone beyond the Mythos (and Mythos-magickal) writers to invent a fake Arabic translation!
The actual Arabic as given in the Qur'an is somewhat ambiguous. It may mean "Iram of the Pillars," or it could also mean "the people of Iram, who were very tall, like pillars." The "legend" that it predates Adam appears to be a conflation of the Lovecraftian Cthulhu cult (probably misreading the Nameless City as being Iram itself) and a misreading of a line in the Arabian Nights, in which a visitor to Iram found within it no "created being of the sons of Adam." The Nights, however, make clear that a human king named Sheddad built it. I can find no support for the claim that angels or djinn built the city outside of Lovecraftian or magickal texts.