Shiva Purana
विचारमथ विज्ञाय तन्तदा भगवान्हर ॥ क्रोधाच्छापन्ददौ घोरं देवयोन्यष्टकस्य च ॥ ३२ ॥
Knowing their intention then, lord Śiva angrily cursed all the eight types of the gods.
english translation
vicAramatha vijJAya tantadA bhagavAnhara ॥ krodhAcchApandadau ghoraM devayonyaSTakasya ca ॥ 32 ॥
hk transliteration by Sanscript