Matt 1:5-6

5and Salmon the father of Boaz by Rahab, and Boaz the father of Obed by Ruth, and Obed the father of Jesse,6and Jesse the father of King David. And David was the father of Solomon by the wife of Uriah,