In Paul Carlson's New testament contradictions he mentions how Matthew does this on several occasions, one particular time were we can see that Matthew does not understand Hebreu very well.
THE TRUTH BEHIND THE PROPHECIES - MATTHEW'S BIG BLUNDER
Since the prophecies mentioned above do not, in their original context, refer to Jesus, why did Matthew include them in his gospel? There are two possibilities:
1. The church says that the words had a hidden future context as well as the original context, ie, God was keeping very important secrets from His chosen people.
2. Matthew, in his zeal to prove that Jesus was the Messiah, searched the Old Testament for passages (sometimes just phrases) that could be construed as messianic prophecies and then created or modified events in Jesus' life to fulfill those "prophecies."
Fortunately for those who really want to know the truth, Matthew made a colossal blunder later in his gospel which leaves no doubt at all as to which of the above possibilities is true. His blunder involves what is known as Jesus' triumphant entry into Jerusalem riding on a donkey (if you believe Mark, Luke or John) or riding on two donkeys (if you believe Matthew). In Matthew 21:1-7, two animals are mentioned in three of the verses, so this cannot be explained away as a copying error. And Matthew has Jesus riding on both animals at the same time, for verse 7 literally says, "on them he sat."
Why does Matthew have Jesus riding on two donkeys at the same time? Because he misread Zechariah 9:9 which reads in part, "mounted on a donkey, and on a colt, the foal of a donkey."
Anyone familiar with Old Testament Hebrew would know that the word translated "and" in this passage does not indicate another animal but is used in the sense of "even" (which is used in many translations) for emphasis. The Old Testament often uses parallel phrases which refer to the same thing for emphasis, but Matthew was evidently not familiar with this usage. Although the result is rather humorous, it is also very revealing. It demonstrates conclusively that Matthew created events in Jesus' life to fulfill Old Testament prophecies, even if it meant creating an absurd event. Matthew's gospel is full of fulfilled prophecies. Working the way Matthew did, and believing as the church does in "future contexts," any phrase in the Bible could be turned into a fulfilled prophecy!