Srimad Bhagavatam Canto 01, Chapter 08, Text 23

SB 1.8.23

yatha hrsikesa khalena devaki
kamsena ruddhaticiram sucarpita
vimocitaham ca sahatmaja vibho
tvayaiva nathena muhur vipad-ganat
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
O Hrsikesa, master of the senses and Lord of lords, You have released Your mother, Devaki, who was long imprisoned and distressed by the envious King Kamsa, and me and my children from a series of constant dangers.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Devaki, the mother of Krsna and sister of King Kamsa, was put into prison along with her husband, Vasudeva, because the envious King was afraid of being killed by Devaki’s eighth son (Krsna). He killed all the sons of Devaki who were born before Krsna, but Krsna escaped the danger of child-slaughter because He was transferred to the house of Nanda Maharaja, Lord Krsna’s foster father. Kuntidevi, along with her children, was also saved from a series of dangers. But Kuntidevi was shown far more favor because Lord Krsna did not save the other children of Devaki, whereas He saved the children of Kuntidevi. This was done because Devaki’s husband, Vasudeva, was living, whereas Kuntidevi was a widow, and there was none to help her except Krsna. The conclusion is that Krsna endows more favor to a devotee who is in greater dangers. Sometimes He puts His pure devotees in such dangers because in that condition of helplessness the devotee becomes more attached to the Lord. The more the attachment is there for the Lord, the more success is there for the devotee.
 
Srimad Bhagavatam Canto 01, Chapter 08, Text 22
Srimad Bhagavatam Canto 01, Chapter 08, Text 24