“And so it was, that, while they were there, the days were accomplished that she should be delivered.”
King James Version (KJV)
2:6 And while they were there, the days were fulfilled that she should be delivered - Mary seems not to have known that the child must have been born in Bethlehem, agreeably to the prophecy. But the providence of God took care for it.
Lu 2:6 And so it was. Mary and Joseph, when journeying to Bethlehem, were probably ignorant of the fact that they were helping to fulfill the prophecy that pointed to Bethlehem as the birthplace of Christ.