My dear King, the material senses and intelligence merge into false ego in the mode of passion, from which they arose; and the mind, along with the demigods, merges into false ego in the mode of goodness. Then the total false ego, along with all of its qualities, merges into the mahat-tattva.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
कालात्मना हृतगुणं नभ आत्मनि लीयते । इन्द्रियाणि मनो बुद्धिः सह वैकारिकैर्नृप । प्रविशन्ति ह्यहङ्कारं स्वगुणैरहमात्मनि
kālātmanā hṛtaguṇaṃ nabha ātmani līyate | indriyāṇi mano buddhiḥ saha vaikārikairnṛpa | praviśanti hyahaṅkāraṃ svaguṇairahamātmani
SB 11.3.15