Yes, they made their hearts like flint, refusing to hear the law and the words which the Lord of hosts had sent by His Spirit through the former prophets. Thus great wrath came from the Lord of hosts. Zechariah 7:12
Here we see that the Holy Spirit was sent and spoke through the prophets telling the people to repent.
The work of the Holy Spirit is conviction of sin – for the purpose of repentance and thus restoration of the blessing of God.
The Holy Spirit throughout history has used people to give this message of repentance to the people.
Listen when He speaks.