Matthew 1:22

22 Now all this took place to fulfill what was spoken by the Lord through the prophet:

Matthew 1:22 In-Context

20 But after he had considered these things, an angel of the Lord suddenly appeared to him in a dream, saying, "Joseph, son of David, don't be afraid to take Mary as your wife, because what has been conceived in her is by the Holy Spirit.
21 She will give birth to a son, and you are to name Him Jesus, because He will save His people from their sins."
22 Now all this took place to fulfill what was spoken by the Lord through the prophet:
23 See, the virgin will become pregnant and give birth to a son, and they will name Him Immanuel , which is translated "God is with us."
24 When Joseph got up from sleeping, he did as the Lord's angel had commanded him. He married her
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.