Śrīmad-Bhāgavatam · Text 2.7.39
Who is speaking and story frame
सर्गे तपोऽहमृषयो नव ये प्रजेशा:
स्थानेऽथ धर्ममखमन्वमरावनीशा: ।
अन्ते त्वधर्महरमन्युवशासुराद्या
मायाविभूतय इमा: पुरुशक्तिभाज: ॥ ३९ ॥
sarge tapo ’ham ṛṣayo nava ye prajeśāḥ
sthāne ’tha dharma-makha-manv-amarāvanīśāḥ
ante tv adharma-hara-manyu-vaśāsurādyā
māyā-vibhūtaya imāḥ puru-śakti-bhājaḥ
At the beginning of creation there are penance, myself [Brahmā] and the Prajāpatis, the great sages who generate; then, during the maintenance of the creation, there are Lord Viṣṇu, the demigods with controlling powers, and the kings of different planets. But at the end there is irreligion, and then Lord Śiva and the atheists full of anger, etc. All of them are different representative manifestations of the energy of the supreme power, the Lord.
Read Śrīla Prabhupāda's purport on Vedabase.io