gopān prasuptān upalabhya nidrayā
sutaṁ yaśodā-śayane nidhāya tat-
sutām upādāya punar gṛhān agāt
Vasudeva knew very well that as soon as the daughter was in the prison house of Kaṁsa, Kaṁsa would immediately kill her; but to protect his own child, he had to kill the child of his friend. Nanda Mahārāja was his friend, but out of deep affection and attachment for his own son, he knowingly did this. Śrīla Viśvanātha Cakravartī Ṭhākura says that one cannot be blamed for protecting one’s own child at the sacrifice of another’s. Furthermore, Vasudeva cannot be accused of callousness, since his actions were impelled by the force of Yoga-māyā.