David assembled all the princes of Israel, the princes of the tribes, and the captains of the companies who served the king by division, and the captains of thousands, and the captains of hundreds, and the rulers over all the substance and possessions of the king and of his sons, with the officers, and the mighty men, even all the mighty men of valor, to Jerusalem.
Yes, God even commanded the temple to be rebuilt under Ezra and Nehemiah; but at that stage in Israel's long and rebellious history of sin and apostasy, the heavenly command to build again the temple must be viewed as exactly the equivalent of Jesus' command for Judas Iscariot to betray him (John 13:27), or the command of God's angel to Balaam, "Go with the men"  (Numbers 22:35).