Passage
So Yahweh stirred up the spirit of Zerubbabel the son of Shealtiel, governor of Judah, and the spirit of Joshua the son of Jehozadak, the high priest, and the spirit of all the remnant of the people; and they came and did work on the house of Yahweh of hosts, their God,
Nearby Context
Haggai 1:12 Then Zerubbabel the son of Shealtiel, and Joshua the son of Jehozadak, the high priest, with all the remnant of the people, listened to the voice of Yahweh their God and the words of Haggai the prophet, as Yahweh their God had sent him. And the people feared Yahweh.
Haggai 1:13 Then Haggai, the messenger of Yahweh, spoke by the commissioned message of Yahweh to the people saying, “‘I am with you,’ declares Yahweh.”
Haggai 1:14 So Yahweh stirred up the spirit of Zerubbabel the son of Shealtiel, governor of Judah, and the spirit of Joshua the son of Jehozadak, the high priest, and the spirit of all the remnant of the people; and they came and did work on the house of Yahweh of hosts, their God,
Haggai 1:15 on the twenty-fourth day of the sixth month in the second year of Darius the king.
Study Lenses
The verse centers on "Spirit", "yahweh", "stirred", "zerubbabel", "shealtiel", "governor", and "judah". It is saying that the verse draws attention to "Spirit" and "yahweh", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 13's "Then Haggai the messenger of Yahweh spoke..." into verse 15's "on the twenty-fourth day of the sixth...", so "Spirit" and "yahweh" belong inside that flow. In Haggai context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "Spirit" and "yahweh" with trust shaped by these words, not by a vague optimism outside the passage.