The Lord says the temple must be rebuilt
1 # Ezra 4.24—5.2Ezra 6.14 On the first day of the sixth month of the second year that Darius was king of Persia,#1.1 sixth month … king of Persia: Elul, the sixth month of the Hebrew calendar, from about mid-August to mid-September; the second year of the rule of Darius was 520 bc. the Lord told Haggai the prophet to speak his message to the governor of Judah and to the high priest.
So Haggai told Governor Zerubbabel and High Priest Joshua#1.1 Governor … Joshua: Hebrew “Governor Zerubbabel son of Shealtiel and High Priest Joshua son of Jehozadak”. 2-5that the Lord All-Powerful had said to them and to the people:
You say this isn't the right time to build a temple for me. But is it right for you to live in expensive houses,#1.2–5 expensive houses: Either houses with panelled interiors or with roofs; the temple was not yet completely rebuilt at this time. while my temple is a pile of ruins? Just look at what's happening. 6You harvest less than you plant, you never have enough to eat or drink, your clothes don't keep you warm, and your wages are stored in bags full of holes.
7Think about what I have said! 8But first, go to the hills and get wood for my temple, so I can take pride in it and be worshipped there. 9You expected much, but received only a little. And when you brought it home, I made that little disappear. Why have I done this? It's because you hurry off to build your own houses, while my temple is still in ruins. 10That's also why the dew doesn't fall and your harvest fails. 11And so, at my command everything will become barren—your farmland and pastures, your vineyards and olive trees, your animals and you yourselves. All your hard work will be for nothing.
12Zerubbabel and Joshua, together with the others who had returned from exile in Babylonia, obeyed the Lord's message spoken by his prophet Haggai, and they started showing proper respect for the Lord. 13Haggai then told them that the Lord had promised to be with them. 14So the Lord God All-Powerful made everyone eager to work on his temple, especially Zerubbabel and Joshua. 15And the work began on the twenty-fourth day of that same month.