After the marriage of Vasudeva and Devaki, while returning home on a chariot driven by Kamsa, an ominous voice addressed Kamsa, warning him that Devaki’s eighth son would kill him. Hearing the omens, Kamsa took up a sword to kill Devaki.
Reference: https://kids.iskcondesiretree.com/eBooks/Krishna_Book/Krishna_Book.pdf