Apparently, Matthew says Herod knew but John believed no one would know.
When Herod heard this, he was troubled and all Jerusalem with him. He asked his priests and scribes where the Christ was to be born. They told him that according to prophecy, it was to be in Bethlehem.
3When Herod the king heard this, he was troubled, and all Jerusalem with him;
4and assembling all the chief priests and scribes of the people, he inquired of them where the Christ was to be born.
5They told him, In Bethlehem of Judea; for so it is written by the prophet:
6And you, O Bethlehem, in the land of Judah, are by no means least among the rulers of Judah; for from you shall come a ruler who will govern my people Israel. (Matt. 2:3-6)
If Christ had come to save Jews, we might ponder why all Jerusalem would be troubled. We take note for later that Herod knew where Jesus was to be born. According to John 7:27 below, no one knew where he would come from.
27Yet we know where this man comes from; and when the Christ appears, no one will know where he comes from. (John 7:27)
