Luke 2:4-5 NAS

4 Joseph also went up from Galilee, from the city of Nazareth, to Judea, to the city of David which is called Bethlehem, because 1he was of the house and family of David,

References for Luke 2:4

5 in order to register along with Mary, who was engaged to him, and was with child.