Passage
Thus they sang when they gaue prayse, and when they gaue thankes vnto the Lord, For he is good, for his mercie endureth for euer toward Israel. And all the people shouted with a great shoute, when they praysed the Lord, because the foundation of the house of the Lord was layed.
Nearby Context
Ezra 3:9 And Ieshua stood with his sonnes, and his brethren, and Kadmiel with his sonnes, and the sonnes of Iudah together to set forward ye workemen in the house of God, and the sonnes of Henadad with their sonnes, and their brethren the Leuites.
Ezra 3:10 And when the builders layed the foundation of the Temple of the Lord, they appoynted the Priestes in their apparel with trumpets, and the Leuites the sonnes of Asaph with cymbales, to prayse the Lord, after the ordinance of Dauid King of Israel.
Ezra 3:11 Thus they sang when they gaue prayse, and when they gaue thankes vnto the Lord, For he is good, for his mercie endureth for euer toward Israel. And all the people shouted with a great shoute, when they praysed the Lord, because the foundation of the house of the Lord was layed.
Ezra 3:12 Many also of the Priests and the Leuites and the chiefe of the fathers, ancient men which had seene the first house, (when the foundation of this house was layed before their eyes) wept with a loud voyce, and many shouted aloud for ioy,
Ezra 3:13 So that the people coulde not discerne the sound of the shoute for ioy, from the noyse of the weeping of the people: for the people shouted with a loude crie, and the noyse was heard farre off.
Study Lenses
The verse centers on "thus", "sang", "gaue", "prayse", "thankes", "vnto", and "lord". It is saying that the verse draws attention to "thus" and "sang", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 10's "And when the builders layed the foundation..." into verse 12's "Many also of the Priests and the...", so "thus" and "sang" belong inside that flow. In Ezra context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "thus" and "sang" with trust shaped by these words, not by a vague optimism outside the passage.