Śrīmad-Bhāgavatam 9.14.6
శుక్రో బృహస్పతేర్ద్వేషాదగ్రహీత్ సాసురోడుపమ్ ।
హరో గురుసుతం స్నేహాత్ సర్వభూతగణావృత: ॥ ౬ ॥
śukro bṛhaspater dveṣād
[shukro brihaspater dveshaad]
agrahīt sāsuroḍupam
[agraheet saasurodupam]
haro guru-sutaṁ snehāt
[haro guru-sutam snehaat]
sarva-bhūta-gaṇāvṛtaḥ
[sarva-bhoota-ganaavritah]
Word-for-word
śukraḥ
—
the demigod named Śukra
bṛhaspateḥ
—
unto Bṛhaspati
dveṣāt
—
because of enmity
agrahīt
—
took
sa-asura
—
with the demons
uḍupam
—
the side of the moon-god
haraḥ
—
Lord Śiva
guru-sutam
—
the side of his spiritual master’s son
snehāt
—
because of affection
sarva-bhūta-gaṇa-āvṛtaḥ
—
accompanied by all kinds of ghosts and hobgoblins.
Blended reading (Sanskrit + English inline)
śukro bṛhaspater dveṣād
śukraḥ
the demigod named Śukra
bṛhaspateḥ
unto Bṛhaspati
dveṣāt
because of enmity
agrahīt sāsuroḍupam
agrahīt
took
sa-asura
with the demons
uḍupam
the side of the moon-god
haro guru-sutaṁ snehāt
haraḥ
Lord Śiva
guru-sutam
the side of his spiritual master’s son
snehāt
because of affection
sarva-bhūta-gaṇāvṛtaḥ
sarva-bhūta-gaṇa-āvṛtaḥ
accompanied by all kinds of ghosts and hobgoblins.
Because of enmity between Bṛhaspati and Śukra, Śukra took the side of the moon-god and was joined by the demons. But Lord Śiva, because of affection for the son of his spiritual master, joined the side of Bṛhaspati and was accompanied by all the ghosts and hobgoblins.
Purport
The moon-god is one of the demigods, but to fight against the other demigods he took the assistance of the demons. Śukra, being an enemy of Bṛhaspati, also joined the moon-god to retaliate in wrath against Bṛhaspati. To counteract this situation, Lord Śiva, who was affectionate toward Bṛhaspati, joined Bṛhaspati. The father of Bṛhaspati was Aṅgirā, from whom Lord Śiva had received knowledge. Therefore Lord Śiva had some affection for Bṛhaspati and joined his side in this fight. Śrīdhara Svāmī remarks, aṅgirasaḥ sakāśāt prāpta-vidyo hara iti prasiddhaḥ: “Lord Śiva is well known to have received knowledge from Aṅgirā.”
— A.C. Bhaktivedanta Swami Prabhupāda
Gauḍīya Ācāryas
Viśvanātha Cakravartī Ṭhākura
Gauḍīya
Translation
Because of enmity between Bṛhaspati and Śukra, Śukra (guru of the demons) took the side of the moon-god and was joined by the demons. But Śiva, because of affection for the son of his guru, joined the side of Bṛhaspati and was accompanied by all the ghosts and hobgoblins.
Śukra sided with the moon along with the demons. The sandhi is poetic license. Śiva obtained knowledge from Aṅgirā, son of Bṛhaspati, according to Śrīdhara Svāmī.
My note
Source: vedabase.io