Prashna Upanishad Verse 3.10
This verse explains how the state of mind at the time of death, combined with Prana and Udana, determines the next destination of the seeker.
Sanskrit
यच्चित्तस्तेनैष प्राणमायाति प्राणस्तेजसा युक्तः । सहात्मना यथासंकल्पितं लोकं नयति ॥ १० ॥
Transliteration
yaccittastenaiṣa prāṇamāyāti prāṇastejasā yuktaḥ | sahātmanā yathāsaṃkalpitaṃ lokaṃ nayati || 10 ||
Translation
Of what thought, by that he attains prana, the prana combined with udana along with the atman, conducts to the world thought of.
Reference: Prashna Upanishad

Muni's Play