Matthew 1:6; Matthew 1:19

6 and Jesse the father of King David. David was the father of Solomon, whose mother had been Uriah's wife,
19 Because Joseph her husband was a righteous man and did not want to expose her to public disgrace, he had in mind to divorce her quietly.