David … begot Solomon.It is here that the lineages of Matthew and of Luke separate. Matthew follows the lineage of Joseph through Rehoboam, which includes Jeconiah (Matt. 1:11). It was prophesied by Jeremiah (Jer. 22:24-30; Jer. 36:29-31) that none of Jeconiah’s (Also called
Jehoiachin) descendants would sit on the throne of David, due to his evil reign (2 Kings 24:8-9; 2 Chron. 36:9-10). While Matthew follows the line of Joseph—Jesus’ legal right to the throne, Luke follows the line of Mary through Nathan (Luke 3:31)—Jesus’ physical link to David. This is why Luke writes,
(as was supposed) the son of Joseph, (Luke 3:23), since Jesus was born of the virgin Mary.