Abraham had Isaac,
Isaac had Jacob,
Jacob had Judah and his brothers,
Judah had Perez and Zerah (the mother was Tamar),
Perez had Hezron,
Hezron had Aram,
Aram had Amminadab,
Amminadab had Nahshon,
Nahshon had Salmon,
Salmon had Boaz (his mother was Rahab),
Boaz had Obed (Ruth was the mother),
Obed had Jesse,
Jesse had David,
and David became king.
Solomon had Rehoboam,
Rehoboam had Abijah,
Abijah had Asa,
Asa had Jehoshaphat,
Jehoshaphat had Joram,
Joram had Uzziah,
Uzziah had Jotham,
Jotham had Ahaz,
Ahaz had Hezekiah,
Hezekiah had Manasseh,
Manasseh had Amon,
Amon had Josiah,
Josiah had Jehoiachin and his brothers,
and then the people were taken into the Babylonian exile.