The following is an excerpt from
The MacArthur New Testament Commentary on Matthew 2 .
Now after Jesus was born in Bethlehem of Judea in the days of Herod the king, behold, magi from the east arrived in Jerusalem, saying, “Where is He who has been born King of the Jews? For we saw His star in the east, and have come to worship Him.” (Matthew 2:1–2)
The events described in this passage probably occurred several months after Jesus was born. We see from 2:11 that Jesus’ family was now staying in a house rather than the stable where He was born (Luke 2:7). Jesus, therefore, would already have been circumcised, and Mary would have completed her period of purification (Luke 2:21–27). The fact that she offered “a pair of turtledoves, or two young pigeons” (Luke 2:24) instead of the normal lamb (Lev. 12:6–8) indicates that the family was poor. Had this offering been made after the magi with their expensive gifts (Matt. 2:11) had already visited Jesus, the lamb could easily have been afforded and would have been required.