Śrīmad-Bhāgavatam · Text 3.26.30
Who is speaking and story frame
संशयोऽथ विपर्यासो निश्चय: स्मृतिरेव च ।
स्वाप इत्युच्यते बुद्धेर्लक्षणं वृत्तित: पृथक् ॥ ३० ॥
saṁśayo ’tha viparyāso
niścayaḥ smṛtir eva ca
svāpa ity ucyate buddher
lakṣaṇaṁ vṛttitaḥ pṛthak
Doubt, misapprehension, correct apprehension, memory and sleep, as determined by their different functions, are said to be the distinct characteristics of intelligence.
Read Śrīla Prabhupāda's purport on Vedabase.io