What is the meaning of Matthew 2:5?

Mt ch 2Mt 2:1Mt 2:2Mt 2:3Mt 2:4Mt 2:5Mt 2:6Mt 2:7
Mt 2:8Mt 2:9Mt 2:10Mt 2:11Mt 2:12Mt 2:13Mt 2:14Mt 2:15
Mt 2:16Mt 2:17Mt 2:18Mt 2:19Mt 2:20Mt 2:21Mt 2:22Mt 2:23

Bible References

And they said unto him, In Bethlehem of Judaea: for thus it is written by the prophet, (Matthew 2:5 KJV)

And they said unto him, In Bethlehem of Judaea: for thus it is written through the prophet, (Matthew 2:5 ASV)

And they said to him, In Bethlehem of Judaea; for thus it is written through the prophet: (Matthew 2:5 DBY)

They said to him, “In Bethlehem of Judea, for thus it is written through the prophet, (Matthew 2:5 WEB)

And they said to him, `In Beth-Lehem of Judea, for thus it hath been written through the prophet, (Matthew 2:5 YLT)

Interlinear KJV

Mt 2:5 And /de/ they said /epo/ unto him, /autos/ In /en/ Bethlehem /Bethleem/ of Judaea: /Ioudaia/ for /gar/ thus /houto/ it is written /grapho/ by /dia/ the prophet, /prophetes/

The Fourfold Gospel

In Bethlehem. It was generally known that Christ should be born in Bethlehem (Joh 7:42). The very body or court which officially announced the birthplace of Jesus subsequently condemned him to death as an imposter. 

For thus it is written. The quotation which follows in Mt 2:6 is taken from Mic 5:2-4, but is freely translated. The translation sets the words of Micah in the language of the times of Herod, and therefore resembles some of our modern attempts at Biblical revision. The use which the scribes made of this prophecy is very important, for it shows that the Jews originally regarded this passage of Scripture as fixing the birthplace of Messiah, and condemns as a fruit of bigotry and prejudice the modern effort of certain rabbis to explain away this natural interpretation.

(TFG 45-46)a