Either automatically or because of one’s regulated spiritual practice, one’s mind may stop functioning on the material platform of waking consciousness, sleep and deep sleep. Then one understands the Supreme Soul and withdraws from material endeavor.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
विरमेत यदा चित्तं हित्वा वृत्तित्रयं स्वयम् । योगेन वा तदाऽऽत्मानं वेदेहाया निवर्तते
virameta yadā cittaṃ hitvā vṛttitrayaṃ svayam | yogena vā tadā''tmānaṃ vedehāyā nivartate
SB 12.7.21