Matthew 1:4-6

4 and Ram the father of Amminadab; and Amminadab the father of Nahshon; and Nahshon the father of Salmon;

5 and Salmon the father of Boaz (his mother was Rahab); and Boaz the father of Obed (his mother was Ruth); and Obed the father of Jesse;

6 and Jesse the father of King David. David was the father of Solomon (his mother had been Uriah's wife);