Starting with Matthew 26:31, which is supposedly a record of Jesus telling his disciples that they would be scatered due to him, their shepherd being struck is a fulfillment of a prophesy found in Zechariah. In context it reads:
After the Passover meal, Jesus and his 12 go to the Mt. of Olives and there Jesus tells them that they will be made to stumble because of him that night, because it was written in Zechariah 13:7 the following;Then, as they ate, Jesus took a loaf, and after giving thanks, broke it and gave it to the disciples saying: 'Take some and eat it, because this is my body.' He also took a cup [of wine], and after giving thanks, gave it to them saying, 'All of you drink from it, 28 because this is my blood of the New Sacred Agreement, which will be poured out for many to forgive [their] sins. But I tell you that I definitely won't drink of this product of the vine anymore, until that day when I will drink it new with you in the Kingdom of my Father.'
Finally, after singing songs of praise, they went out to the Mount of Olives.
[It was there that] Jesus said to them: 'All of you will be stumbled [by what will happen to] me tonight, because it's written: I will beat the shepherd, and the sheep of the flock will be scattered.
'I will strike the shepherd, and the sheep of the flock will be scattered.'
Shall we read Zechariah 13:1 -14:3 to see if the text Matthew claims Jesus appealed to actually has anything prophetic about the Messiah's last days?
So, according to Matthew 26:31, Jesus told his disciples that they would be shaken and scattered because it was prophesied that God will strike the shepherd, and the sheep of the flock will be scattered. Interesting considering the fact that according to Zechariah the shepherds (plural) that would be struck by God were lumped in as it pertains to the punishment from God, with the false prophets spoken of previously in Zechariah 13. These were people God is said to have comtempt for and were being held responsible for misleading God's chosen sheep, I mean people. How in the world is this in any way, shape, or form a prophesy foretelling the plight of the Jewish Messiah and his disciples?'In that Day, all [springs] will then open wide, for the rinsing and cleansing of David's house, and for those who live in JeruSalem. And in that Day it will be,' says Jehovah of Armies; 'The names of their idols I'll wipe from the land, so they'll be remembered no more. And I will remove from the land, the false prophets with their unclean spirits.
'And if there's a man who still prophecies; his father and the mother who bore him, must tell him that he may no longer live! For, he has told lies in the Name of the Lord. Then his father and the mother who bore him, will tie him up, because he prophesied. And it will be in that Day, that their visions will bring them disgrace, as will the things that they prophesied. They'll cover their heads with animal hides, because they will know that they've lied. And they'll say, I'm not a prophet; I'm just a man who works the ground… this is all that I've done since my youth!
'And then I will ask, So, what are these wounds in your hands?
'And they will reply, They were struck in the homes of our loved ones.
'O broadsword, awaken against [such] a man, and against the shepherds [who live in] My land,' says Jehovah the Almighty. 'Strike the shepherds and scatter the sheep… against the shepherds I'll bring My hand.
'And in that Day,' says Jehovah; 'two-thirds will be wiped out and gone, but a third will still remain. Then I'll try them as [you] try gold. But, they will call on My Name. Then I will say, You're My people, and they will say, Jehovah's our God.'
'Look; The Lord's [Great] Day now approaches, when spoils will be divided among them. To JeruSalem I'll gather all nations, and the city will be captured thereafter. All the homes will be looted, and all the women will be raped. Then half of the city will be led away, and the rest (those who are My people), will not be destroyed from the [land]. Then the Lord will attack all those nations, in His battle on the Day of the war.
It appears that the writer of Matthew either misquoted Jesus in hopes of duping the unstudied Jews that he wrote to into believing Jesus fulfilled a prophesy about him that was not in fact about him, or Matthew's writer correctly quoted Jesus and it was Jesus that was doing the duping. Either way, it's not a good look for the Bible.