Krishna was born at the stroke of midnight in His four-armed Vishnu form, dressed in silk and jewels, carrying the four weapons: the conch, disc, club and lotus. His parents prayed for Him to turn Himself into an ordinary baby so they could hide Him from Kamsa. The Lord advised Vasudeva to take him to Vrindavana and exchange him with a girl that had just been born there. Then He turned Himself into a baby.
Magically, the guards in Kamsa's prison fell asleep, and all the iron shackles, chains and locks automatically opened. Without questioning this, Vasudeva took the child and departed for Vrindavana. Like the story of Moses, the story of Krishna also includes a parting of the waters, allowing Vasudeva to carry Krishna across the Jamuna River to Vrindavana. When Vasudeva reached the house of Nanda, all the cowherds were asleep. Thus he placed his own son on the bed of Yasoda, picked up her newborn girl and returned to the prison of Kamsa.
There was a chance Kamsa would spare the child because the omen said it would be the eighth son that would kill him. Devaki pleaded with him, but Kamsa pulled the baby girl from her arms and dashed her against a stone. The girl slipped from his hands and rose above his head as the eight-armed form of Goddess Durga, dressed in fine garments and jewels. She said, "The enemy you contemplate is living somewhere else. You are a fool to hurt innocent children. Krishna will kill you."
Kamsa became remorseful and begged Devaki and Vasudeva to forgive him for his sins. He released them from their shackles and fell down on their feet, crying tears of regret. The next day, however, Kamsa's ministers advised him to give up his sentimental attitude and take action to kill all newborn children in the region. They also advised him to disturb the demigods and saintly people. There is a parallel to this story in the New Testament. When Lord Jesus was born in Bethlehem, Herod killed all newborn children in the area, in what is known as the Massacre of the Innocents. Based on a dream, Joseph took the baby Jesus to Egypt, and returned only after Herod was dead.