Matthew 1:6
and Jesse the father of David the king. Next: David was the father of Solomon by Uriah’s wife,
Berean Standard Bible
And Jesse begat David the king; and David the king begat Solomon of her that had been the wife of Urias;
Jesse became the father of King David. David the king became the father of Solomon by her who had been Uriah’s wife.