You are referring to Zech 12: 10-14. That was in 70 A.D. during His second coming. Here are the verses:
Zech 12: 10-14, "And I will
pour on the house of David and on the inhabitants of Jerusalem the Spirit of grace and supplication;
then they will look on Me whom they pierced. Yes, they will mourn for Him as one mourns for
hisonly
son, and grieve for Him as one grieves for a firstborn. 11 In that day there shall be
a great mourning in Jerusalem, like the mourning at Hadad Rimmon in the plain of [
c]Megiddo. 12 And the land shall mourn,
every family by itself: the family of the house of David by itself, and their wives by themselves; the family of the house of Nathan by itself, and their wives by themselves; 13 the family of the house of Levi by itself, and their wives by themselves; the family of Shimei by itself, and their wives by themselves; 14 all the families that remain, every family by itself, and their wives by themselves.
What does Matt 24: 30 say? Matt 24: 30, "Then the sign of the Son of Man will appear in heaven,
and then all the tribes of the earth will mourn, and they will see the Son of Man coming on the clouds of heaven with power and great glory.
The tribes mourned at His second coming in 70 A.D. His elect were saved out of the city and the rest were killed. About 1 million Jews died in the judgment.
Matt 24: 21-22, " For then there will be great tribulation, such as has not been since the beginning of the world until this time, no, nor ever shall be. And unless those days were shortened, no flesh would be saved;
but for the elect’s sake those days will be shortened.
Some were spared in the siege of Jerusalem. The elect.
Rev 1: 7, "Behold, He is coming with clouds, and every eye will see Him,
even they who pierced Him. And all the tribes of the earth will mourn because of Him. Even so, Amen.
The Greek word translated earth can equally be translated as land. It is the land of Israel. All the tribes of the land of Israel.
All of this happened in 70 A.D. at His second coming.