Shiva Purana
तदेव पृष्टं कृष्णेन विष्णुना विश्वयोनिना ॥ पशुत्वं च सुरादीनां पतित्वं च शिवस्य च ॥ ५ ॥
The same question was asked by Kṛṣṇa, the cause of the universe about the animal nature of the gods and others and the overlordship of Śiva.
english translation
tadeva pRSTaM kRSNena viSNunA vizvayoninA ॥ pazutvaM ca surAdInAM patitvaM ca zivasya ca ॥ 5 ॥
hk transliteration by Sanscript