Now when the days of her purification according to the law of Moses were completed, they brought Him to Jerusalem to present Him to the Lord. Luke 2:22
So, how long was that? In Leviticus 12 we find the days of purification law were 7 days, then circumcision on the eighth day and then continue in uncleanness for 33 days. Since I was one of those Gentiles not raised on the Law of Moses, does that mean 41 days total or just 33? In either case, Mary and Joseph, and the newborn king of the Jews went to Jerusalem and the temple. How far had the word from the shepherds spread in 33 or 41 days? Apparently not as far as Herod's ears. Did he realize after the wise men left that the child had to have been right there almost in reaching distance? Probably so, but the time it took the party from the east to make it to Judea gave the little family of God's son time to make their trip to Jerusalem and get back home. God managed the spread of the word and the travel of both groups so that the prophecy given through Jeremiah of Herod's murderous crime would be fulfilled.
Herod's part is one dark Christmas story among the glad tidings of great joy, but somehow God has it all worked out for us. Praise Him.
Bucky