Even back in Isaiah’s day there was prophesy of the ultimate fate of Jerusalem. Read Jihn Gill’s pithy comment on this verse. I added all the verses referenced by Gill at the end, you can look them up in context.
Isa 24:23 Then the moon shall be confounded, and the sun ashamed, when the LORD of hosts shall reign in mount Zion, and in Jerusalem, and before his ancients gloriously.
Isaiah 24:23 Gill
Then the moon shall be confounded, and the sun ashamed,…. Either literally understood; and the meaning is, that they shall be darkened, their light being eclipsed by the superior light of Christ, the sun of righteousness; see Mat 24:29 the New Jerusalem church state, which is referred to, will have no need of the light of the sun, or of the moon, Christ being the light thereof, Rev 21:23 figuratively it may be interpreted of the kings and great men of the earth, as Aben Ezra; whose glory will be outshone by the transcendent lustre and glory of Christ, the King of saints. The Targum paraphrases it of idolaters thus,
“and they shall be confounded that worship the moon, and they shall be ashamed that worship the sun;”
perhaps this may have reference to the fourth vial, which shall be poured out upon the pope and his clergy, Rev 16:8,
when the Lord of hosts shall reign in Mount Zion, and in Jerusalem; who is no other than the Lord Jesus Christ, the true Jehovah, the Lord of hosts or armies, of the sun, moon, and stars, the host of heaven, and of the heavenly host of angels, and of men on earth; who was King from eternity, and reigned during the Old Testament dispensation; came a King into this world, though his kingdom was not of it, nor was with observation: upon his ascension to heaven was made and declared Lord and Christ; and now rules in the hearts of his people by his Spirit and grace, and whose spiritual reign will more manifestly appear in the latter day; but here it is to be understood of his reign on earth, which will be personal, visible, and glorious, and in a different manner from what it now is, when he will be King over all the earth. Zion and Jerusalem, where he will reign, may be literally understood as the chief place of his residence during this state, the spot of ground where he was most despised and ill treated; see Zec 14:4 or mystically, the church in the New Jerusalem state, Rev 21:2 here he will reign,
and before his ancients gloriously: or, “in glory”; in his own glory, both as God and as man, and Mediator; and in his Father’s glory, and in the glory of his holy angels, in which he will come and appear; and therefore his appearing is called a glorious one, Luk 9:26, Tit 2:13 and this “before his ancients”, the ancient patriarchs both before the flood, as Adam, Abel, &c. and after the flood, as Abraham, Isaac, Jacob, and others; the old Jewish church, the prophets and saints of the Old Testament dispensation; the apostles and elders of the Gospel churches under the New; the four and twenty elders, the representatives of the Gospel churches, so often spoken of in the book of the Revelation; very probably with reference to this text; and all the saints, in all ages, who will now be raised from the dead, and live and reign with him; these are his ancients, who are loved with an everlasting love, chosen in him before the foundation of the world, with whom a covenant was made in him, and grace given to them in him, before the world began; in the midst and presence of these he will reign, and they shall behold his glory; yea, these shall appear in glory; for so the words may be construed, “before his ancients”, who are “glory”, or “in glory” (b); for they shall appear with him in glory, both in soul and body, having the glory of God upon them, Col 3:4.
(b) ונגד זקניו כבוד “et coram senibus suis, gloria”, Pagninus, Montanus.
Mat 24:29 Immediately after the tribulation of those days shall the sun be darkened, and the moon shall not give her light, and the stars shall fall from heaven, and the powers of the heavens shall be shaken:
Rev 21:23 And the city had no need of the sun, neither of the moon, to shine in it: for the glory of God did lighten it, and the Lamb is the light thereof.
Rev 16:8 And the fourth angel poured out his vial upon the sun; and power was given unto him to scorch men with fire.
Zec 14:4 And his feet shall stand in that day upon the mount of Olives, which is before Jerusalem on the east, and the mount of Olives shall cleave in the midst thereof toward the east and toward the west, and there shall be a very great valley; and half of the mountain shall remove toward the north, and half of it toward the south.
Rev 21:2 And I John saw the holy city, new Jerusalem, coming down from God out of heaven, prepared as a bride adorned for her husband.
Luk 9:26 For whosoever shall be ashamed of me and of my words, of him shall the Son of man be ashamed, when he shall come in his own glory, and in his Father’s, and of the holy angels.
Tit 2:13 Looking for that blessed hope, and the glorious appearing of the great God and our Saviour Jesus Christ;