A woman who prostituted herself to her father-in-law so she can carry on the family line is chosen to be one of the great ancestors of Jesus, the Son of God.
Genesis 38
Matthew 1:3