Śrīmad-Bhāgavatam · Text 2.8.23
Who is speaking and story frame
यथात्मतन्त्रो भगवान् विक्रीडत्यात्ममायया ।
विसृज्य वा यथा मायामुदास्ते साक्षिवद् विभु: ॥ २३ ॥
yathātma-tantro bhagavān
vikrīḍaty ātma-māyayā
visṛjya vā yathā māyām
udāste sākṣivad vibhuḥ
The independent Personality of Godhead enjoys His pastimes by His internal potency and at the time of annihilation gives them up to the external potency, and He remains a witness to it all.
Read Śrīla Prabhupāda's purport on Vedabase.io