It was midnight on the eighth day in the month of Shravana, on a dark, rainy and windy night. Just before the child was born, the guards all fell into a deep slumber and the locks on the prison door opened. Devaki and Vasudeva too were freed of their binds. And Krishna was born. A voice from the heavens instructed Vasudeva to carry Krishna across the Yamuna river to a village called Gokul. There, he should go to the home of his sister Yashoda and her husband Nanda and replace Krishna with their new-born daughter. Vasudeva put his son in a basket and went quickly towards the Yamuna. When he reached the shores, he found the water level rising. He put the basket on his head and began towards the Yamuna . The water level rose but everytime it touched the baby's toes, it receded. Suddenly, a cobra sprang out Krishna Janmashtami of the water. Vasudeva froze but the snake stopped to spread its hood over the basket. It was Sesha Naga protecting Krishna from the rain. Vasudeva realised his son was no ordinary baby. He hurried to Gokul, exchanged the children and returned to the prison.
As soon as he entered, the locks shut and the guards awoke. Hearing the baby cry, they informed Kansa who rushed to the prison. He was about to smash the little girl against the stone slab, when she slipped out of his hands. As she rose towards the sky, she warned him that the one responsible for his death was safe.
When Krishna grew up, he killed his evil uncle and restored the throne to his grandfather.