The first two verses of Revelation 12 seem unrelated to the rest of the chapter, but they serve as a transition between chapter 10 and 11. The end of chapter 10 has John eating a scroll that represents the word of the Lord, it is sweet but turns bitter in his mouth, an allusion to the call of Ezekiel (Ezek 1-3).
The end of book of Ezekiel is similar to Revelation 11:1-2 as well. In Ezekiel 40 the prophet is taken to a high mountain, from which he can observe events in Jerusalem. He is met by an angel (a man with the appearance of bronze) with a measuring rod in his hands. The following chapters describe Ezekiel measuring the city and the temple area. After the measuring is complete, the glory of the Lord returns to the temple.
It cannot be coincidental that both of these interlude events are related to Ezekiel, the first from the beginning of his ministry and the second at the conclusion. Ezekiel’s ministry was to describe the departure of the glory of the Lord from the temple at the time of the fall of Jerusalem in 586 B. C. and its return at the time of the establishment of the kingdom. Perhaps the patterning of these two sections after Ezekiel is to highlight the return of the glory of the Lord at the end of Revelation.
But what does the act of measuring the Temple mean? There are parallels in the Old Testament implying both preservation (Zechariah 2:1-5) and destruction (Amos 7:7-9). In the context of Revelation 11:1-2, it appears the image describes preservation, since the outer court is not measured and is overrun by the Gentiles for 42 months. The Temple, the holy place, and the worshipers are all measured. It might sound odd to measure the worshipers, but the word (μετρέω) can mean measure, count, or mete out. David Aune suggests this is an example of the figure of speech known as zeugma, one verb with two direct objects, only one of which fits the verb.
Prior to A.D. 70, many Jews believed the temple area of Jerusalem would never fall to an enemy. During the Jewish War, zealots retreated into the Temple thinking they would be preserved because they were in the temple. Instead, 6000 died when the Romans destroyed the temple. Second Baruch 6:3-9 records a legend that an angel took all of the temple objects just before the fall of the city and buried them until the end times.
Second Baruch 6:3-9 And behold, suddenly a strong spirit lifted me and carried me above the wall of Jerusalem. 4 And I saw, and behold, there were standing four angels at the four corners of the city, each of them with a burning torch in his hands. 5 And another angel came down from heaven and said to them, “Hold your torches and do not light them before I say it to you. 6 Because I was sent first to speak a word to the earth and then to deposit in it what the Lord, the Most High, has commanded me.” 7And I saw that he descended in the Holy of Holies and that he took from there the veil, the holy ephod, the mercy seat, the two tables, the holy raiment of the priests, the altar of incense, the forty-eight precious stones with which the priests were clothed, and all the holy vessels of the tabernacle. 8And he said to the earth with a loud voice: Earth, earth, earth, hear the word of the mighty God, and receive the things which I commit to you, and guard them until the last times, so that you may restore them when you are ordered, so that strangers may not get possession of them. 9For the time has arrived when Jerusalem will also be delivered up for a time, until the moment that it will be said that it will be restored forever. And the earth opened its mouth and swallowed them up. (OTP 1:622–623)
Why 42 months? This is the thrice repeated number that is associated with the time of the tribulation. 42 months of 30 days each = 1260 days, and 42 months are exactly 3 and a half years (a time, times and half a time.) That the Gentiles are allowed to overrun the outer court for 42 months is an indication Jerusalem will not be a city of peace.