sukro brhaspater dvesad
haro guru-sutam snehat
sukrah—the demigod named Sukra; brhaspateh—unto Brhaspati; dvesat—because of enmity; agrahit—took; sa-asura—with the demons; udupam—the side of the moon-god; harah—Lord Siva; guru-sutam—the side of his spiritual master’s son; snehat—because of affection; sarva-bhuta-gana-avrtah—accompanied by all kinds of ghosts and hobgoblins.
Because of enmity between Brhaspati and Sukra, Sukra took the side of the moon-god and was joined by the demons. But Lord Siva, because of affection for the son of his spiritual master, joined the side of Brhaspati and was accompanied by all the ghosts and hobgoblins.
The moon-god is one of the demigods, but to fight against the other demigods he took the assistance of the demons. Sukra, being an enemy of Brhaspati, also joined the moon-god to retaliate in wrath against Brhaspati. To counteract this situation, Lord Siva, who was affectionate toward Brhaspati, joined Brhaspati. The father of Brhaspati was Angira, from whom Lord Siva had received knowledge. Therefore Lord Siva had some affection for Brhaspati and joined his side in this fight. Sridhara Svami remarks, angirasah sakasat prapta-vidyo hara iti prasiddhah: “Lord Siva is well known to have received knowledge from Angira.”
Link to this page: https://prabhupadabooks.com/sb/9/14/6