There are many prophecies about Jesus's family tree. Since Mary was his closest blood relative, Luke 3 has her family tree. Follow it back to David.