Zechariah 12:10
8 On that day the Lord himself will defend the inhabitants of Jerusalem, so that the weakest among them will be like mighty David, and the dynasty of David will be like God, like the angel of the Lord before them. 9 So on that day I will set out to destroy all the nations that come against Jerusalem. 10 “I will pour out on the kingship of David and the population of Jerusalem a spirit of grace and supplication so that they will look to me, the one they have pierced. They will lament for him as one laments for an only son, and there will be a bitter cry for him like the bitter cry for a firstborn. 11 On that day the lamentation in Jerusalem will be as great as the lamentation at Hadad Rimmon in the plain of Megiddo. 12 The land will mourn, each clan by itself—the clan of the royal household of David by itself and their wives by themselves; the clan of the family of Nathan by itself and their wives by themselves;
John 19:37
35 And the person who saw it has testified (and his testimony is true, and he knows that he is telling the truth), so that you also may believe. 36 For these things happened so that the scripture would be fulfilled, “Not a bone of his will be broken.” 37 And again another scripture says, “They will look on the one whom they have pierced.” 38 After this, Joseph of Arimathea, a disciple of Jesus (but secretly because he feared the Jewish leaders), asked Pilate if he could remove the body of Jesus. Pilate gave him permission, so he went and took the body away. 39 Nicodemus, the man who had previously come to Jesus at night, accompanied Joseph, carrying a mixture of myrrh and aloes weighing about 75 pounds.
Notes and References
"... Incontrovertibly, the phrase in John 19:37, prefaced by the quotation formula, refers to the prophecy found in Zechariah 12:10. This oracle is the only scriptural passage that speaks of looking at the pierced one ... The immediate context of the crucial phrase can be delimited by verses 12:1 and 13:6. The whole section 12:1 – 13:6 forms a thematically unified oracle with clearly defined boundaries, namely two passages concerning the figure of the shepherd(s) (11:4-17; 13:7-9). The oracle is naturally structured by means of the recurring opening expression on that day. After a heading or title introducing the new oracle (12:1), the main motif of the subsequent section (12:2-9) is a war against Jerusalem. Again, its delimitation is easily perceivable as it both begins and ends with the victorious affirmation that all the nations assaulting Jerusalem will perish ..."
Kubiś, Adam The Book of Zechariah in the Gospel of John (p. 115) Gabalda, 2012