Śrīmad-Bhāgavatam · Text 4.29.17
Who is speaking and story frame
यथा यथा विक्रियते गुणाक्तो विकरोति वा ।
तथा तथोपद्रष्टात्मा तद्वृत्तीरनुकार्यते ॥ १७ ॥
yathā yathā vikriyate
guṇākto vikaroti vā
tathā tathopadraṣṭātmā
tad-vṛttīr anukāryate
Formerly it was explained that the Queen is one’s intelligence. While one is awake or asleep, that intelligence creates different situations. Being influenced by contaminated intelligence, the living entity envisions something and simply imitates the actions and reactions of his intelligence.
Read Śrīla Prabhupāda's purport on Vedabase.io