yāḥ kṛṣṇa-rāma-janmarkṣe
mano-dattā mahā-matiḥ
tāś cādadād anusmṛtya
kaḿsenādharmato hṛtāḥ
yah -- which (cows); krishna-rama -- of Krishna and Balarama; janmarikshe -- on the day of birth; manah -- in his mind; dattah -- given in charity; maha-matih -- the magnanimous (Vasudeva); tah -- them; ca -- and; adadat -- he gave; anusmritya -- remembering; kamsena -- by Kamsa; adharmatah -- impiously; hritah -- taken away.
At the time of Krishna's appearance, Vasudeva had been imprisoned by Kamsa, who had stolen all his cows. Still, Vasudeva had been so jubilant at the birth of the Lord that he had mentally donated ten thousand of his cows to the brahmanas.
Now, upon Kamsa's death, Vasudeva took back all his cows from the late King's herd and gave ten thousand of them, according to religious principles, to the worthy brahmanas.