Śrīmad-Bhāgavatam · Text 4.28.40
Who is speaking and story frame
स व्यापकतयात्मानं व्यतिरिक्ततयात्मनि ।
विद्वान् स्वप्न इवामर्शसाक्षिणं विरराम ह ॥ ४० ॥
sa vyāpakatayātmānaṁ
vyatiriktatayātmani
vidvān svapna ivāmarśa-
sākṣiṇaṁ virarāma ha
King Malayadhvaja attained perfect knowledge by being able to distinguish the Supersoul from the individual soul. The individual soul is localized, whereas the Supersoul is all-pervasive. He became perfect in knowledge that the material body is not the soul but that the soul is the witness of the material body.
Read Śrīla Prabhupāda's purport on Vedabase.io