Zechariah 11and 12 presents an interesting illustration of how God dealt with His people. They are the sheep and the leaders are the shepherds. The shepherds doomed the sheep. The Lord had two staffs Favor and Unity. But the sheep didn’t want Him as a shepherd. He asked for His wages and they gave Him thirty shekels of silver (the 30 pieces of silver paid to Judas?) The Lord broke Favor and annulled His covenant with the people. Then He broke Unity and divided the countries. They will all struggle.
God will bring one up to be like David. God will show compassion on the house of David and the inhabitants of Jerusalem. They will mourn over the one they pierced.
It is unclear whether this oracle is about something during the time of Zechariah or about Jesus.
In Revelation 20 the devil is through into the pit, eventually into the lake of fire. Jesus sits on the throne and the dead are raised and judged by what is recorded in the books.