Luke 2:4-6

4And Joseph also went up afrom Galilee, from the town of bNazareth, to Judea, to cthe city of David, which is called dBethlehem, ebecause he was of the house and lineage of David, 5to be registered with Mary, his betrothed,
That is, one legally pledged to be married
who was with child.
6And gwhile they were there, the time came for her to give birth.
Copyright information for ESV