Matthew 1:6

6 and Jesse the father of King David. David was the father of Solomon, whose mother had been Uriah’s wife,

Read Matthew 1:6 Using Other Translations

And Jesse begat David the king; and David the king begat Solomon of her that had been the wife of Urias;
and Jesse the father of David the king. And David was the father of Solomon by the wife of Uriah,
Jesse was the father of King David. David was the father of Solomon (whose mother was Bathsheba, the widow of Uriah).