Rev 12:5

5 She gave birth to a son, a male child, who is to rule all the nations with a rod of iron. Her child was caught up to God, and to his throne. 

who is to rule all nations with a rod of iron – this is the birth described in Psa 2:7-9, “today I have begotten You…You shall break them with a rod of iron.”

and her child was caught up to God and to His throne– the explanation of this is in Acts 13:33-34. “He raised up Jesus, as written in the second Psalm, ‘You are My Son; today I have begotten You’” (Psa 2:7-9). Christ became the firstborn of New Jerusalem, when He resurrected. See also Rom 1:4.