5 Salmon was the father of Boaz (whose mother was Rahab). Boaz was the father of Obed (whose mother was Ruth). Obed was the father of Jesse. 6 Jesse was the father of King David. David was the father of Solomon (whose mother was Bathsheba, the widow of Uriah).

Matthew Henry's Commentary on Matthew 1:5-6

Commentary on Matthew 1:1-17

(Read Matthew 1:1-17)

Concerning this genealogy of our Saviour, observe the chief intention. It is not a needless genealogy. It is not a vain-glorious one, as those of great men often are. It proves that our Lord Jesus is of the nation and family out of which the Messiah was to arise. The promise of the blessing was made to Abraham and his seed; of the dominion, to David and his seed. It was promised to Abraham that Christ should descend from him, 2 Samuel 7:12; Psalm 89:3, & c.; 132:11; and, therefore, unless Jesus is a son of David, and a son of Abraham, he is not the Messiah. Now this is here proved from well-known records. When the Son of God was pleased to take our nature, he came near to us, in our fallen, wretched condition; but he was perfectly free from sin: and while we read the names in his genealogy, we should not forget how low the Lord of glory stooped to save the human race.