The book of the genealogy of Jesus Christ, the son of David, the son of Abraham.
Abraham was the father of Isaac, and Isaac the father of Jacob, and Jacob the father of Judah and his brothers,
Matthew 1:1, 2 ESV
God used people who were doubters of Him, polygamists, liars, cheaters, and worse to create the nation of Israel. This is the backdrop God used to develop the nation that would usher Christ in the world. He used their mess and mistakes for good. He will use yours too!