SB 1.8.11
suta uvaca
upadharya vacas tasya
bhagavan bhakta-vatsalah
apandavam idam kartum
drauner astram abudhyata
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada:
Suta Gosvami said: Having patiently heard her words, Lord Sri Krsna, who is always very affectionate to His devotees, could at once understand that Asvatthama, the son of Dronacarya, had thrown the brahmastra to finish the last life in the Pandava family.
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada:
The Lord is impartial in every respect, but still He is inclined towards His devotees because there is a great necessity of this for everyone’s well-being. The Pandava family was a family of devotees, and therefore the Lord wanted them to rule the world. That was the reason He vanquished the rule of the company of Duryodhana and established the rule of Maharaja Yudhisthira. Therefore, He also wanted to protect Maharaja Pariksit, who was lying in embryo. He did not like the idea that the world should be without the Pandavas, the ideal family of devotees.