Then after the exile to Babylon Jechoniah fathered Salathiel, Salathiel fathered Zerubbabel,
References for Matthew 1:12
Zerubbabel fathered Abiud, Abiud fathered Eliakim, Eliakim fathered Azor,
Azor fathered Zadok, Zadok fathered Achim, Achim fathered Eliud,
Eliud fathered Eleazar, Eleazar fathered Matthan, Matthan fathered Jacob,
and Jacob fathered Joseph the husband of Mary, who gave birth to Jesus who is called the Messiah.
References for Matthew 1:16
So all the generations from Abraham to David were 14 generations; and from David until the exile to Babylon, 14 generations; and from the exile to Babylon until the Messiah, 14 generations.