After the captive Israelites returned to their home, they began working on the Temple, which the invading Babylonians had destroyed.
The LORD God was with them to prosper them, but first the Temple needed to be rebuilt, in order to restore the atonement and allow for the covering of their sins, thus permitting the provisional fulfillment of the Old Covenant until Jesus came to fulfill the Old and enact the New (Matthew 5: 17)
During their efforts to rebuild the Temple, adversaries prevented them from building the Temple, and even induced the Persian king at the time to prevent the Israelites from rebuilding the Temple:
"Be it known unto the king, that the Jews which came up from thee to us are come unto Jerusalem, building the rebellious and the bad city, and have set up the walls thereof, and joined the foundations. 13Be it known now unto the king, that, if this city be builded, and the walls set up again, then will they not pay toll, tribute, and custom, and so thou shalt endamage the revenue of the kings. 14Now because we have maintenance from the king's palace, and it was not meet for us to see the king's dishonour, therefore have we sent and certified the king; 15That search may be made in the book of the records of thy fathers: so shalt thou find in the book of the records, and know that this city is a rebellious city, and hurtful unto kings and provinces, and that they have moved sedition within the same of old time: for which cause was this city destroyed. 16We certify the king that, if this city be builded again, and the walls thereof set up, by this means thou shalt have no portion on this side the river." (Ezra 4: 12-16)
Indeed, there were records that Jerusalem was a rebellious city, and a great headache to surrounding nations. Moreso, they were rebellious to their own God, enough that He had to turn them over to the Babylonians.
However, following the initial setback, the Israelites resumed building the Temple, and reminded their new king that his predecessor had ordered that the Temple be rebuilt.
Isaiah prophesied the very name of the ruler:
"That confirmeth the word of his servant, and performeth the counsel of his messengers; that saith to Jerusalem, Thou shalt be inhabited; and to the cities of Judah, Ye shall be built, and I will raise up the decayed places thereof:
27That saith to the deep, Be dry, and I will dry up thy rivers:
28That saith of Cyrus, He is my shepherd, and shall perform all my pleasure: even saying to Jerusalem, Thou shalt be built; and to the temple, Thy foundation shall be laid." (Isaiah 44: 26-28)
Not only did the records show that King Cyrus ordered the rebuilding of the Temple, but he wanted nothing spared in its restoration:
" 4With three rows of great stones, and a row of new timber: and let the expences be given out of the king's house: 5And also let the golden and silver vessels of the house of God, which Nebuchadnezzar took forth out of the temple which is at Jerusalem, and brought unto Babylon, be restored, and brought again unto the temple which is at Jerusalem, every one to his place, and place them in the house of God." (Ezra 6: 4-5)
The actions of the Israelites were not the final word. The word of the King was the final word.
Today, because of Jesus' work and His word -- It is Finished -- there is no condemnation, all your sins are put away, and there is nothing that can prevent God's restoration in your life!