Kansa, the ruler of Mathura had decided to kill his sister Devaki’s son Krishna as soon as he was born. In order to protect Krishna from Kansa, Krishna and Yoganidra or Yogamaya were born at the same time from the wombs of Devaki and Yashoda respectively and were exchanged by Vasudeva. Krishna survived as foster son of Yashoda. While Kansa tried to kill Yogamaya, Yashoda’s daughter, she assumes her real form as Devi and flown to sky. She then retired to dwell in Vindhya hills as Vindhyavasini Devi
All posts in Stories of Yashoda in Mahabharata
Krishna as usual was playing in sand and was swallowing it. Mother Yashoda, upon seeing it, was furious with Krishna for disobeying her and punished Krishna by tying him to a grinding stone. Krishna opens his mouth in front of Yashoda who sees the Seven Oceans, the entire Universe with its vast expanse and also Narayana seated upon Adishesha (The Divine Snake), attended upon by his beloved consort Mahalakshmi. Upon this divine intervention, Mother Yashoda faints only to be revived by Krishna and attended by Sage Narada, who explains to her about Krishna’s Life.
Devaki and Vasudeva were imprisoned by Kansa due to a delusion caused by Narada in Kansa’s mind. Her six children were killed, while the seventh Balarama appeared as a miscarriage and transferred to Rohini’s womb. Devaki’s six dead sons were named Kírttimat, Sushena, Udayin, Bhadrasena, Rijudasa, and Bhadradeha. Devaki soon gave birth to Krishna and the baby was switched with Yashoda’s daughter Ekanamsha by Vasudeva. She protests against the killing of an innocent girl but Kansa hurls her on a rock. The girl transforms into an eight-armed goddess says “Fool your destroyer has already been born elsewhere.” And vanishes into the heavens. Devaki and Vasudeva’s imprisonment came to an end after Kansa’s death.
Krishna is born to Devaki and her husband, Vasudeva of the Chandravanshi clan. Devaki’s brother is a tyrant named Kansa. At Devaki’s wedding, according to Puranic legends, Kansa is told by fortune tellers that a child of Devaki would kill him. Kansa arranges to kill all of Devaki’s children. When Krishna is born, Vasudeva secretly carries the infant Krishna away across the Yamuna and exchanges him. When Kansa tries to kill the newborn, the exchanged baby appears as the Hindu goddess Durga, warning him that his death has arrived in his kingdom, and then disappears, according to the legends in the Puranas. Krishna grows up with Nanda and his wife Yasoda near modern-day Mathura.