Śrīmad-Bhāgavatam · Text 7.7.25
बुद्धेर्जागरणं स्वप्न: सुषुप्तिरिति वृत्तय: ।
ता येनैवानुभूयन्ते सोऽध्यक्ष: पुरुष: पर: ॥ २५ ॥
buddher jāgaraṇaṁ svapnaḥ
suṣuptir iti vṛttayaḥ
tā yenaivānubhūyante
so ’dhyakṣaḥ puruṣaḥ paraḥ
Intelligence can be perceived in three states of activity — wakefulness, dreaming and deep sleep. The person who perceives these three is to be considered the original master, the ruler, the Supreme Personality of Godhead.
Read Śrīla Prabhupāda's purport on Vedabase.io