Bhagavad Gita 14.14
यदा सत्त्वे प्रवृद्धे तु प्रलयं याति देहभृत्। तदोत्तमविदां लोकानमलान्प्रतिपद्यते।।14.14।।
yadā sattve pravṛddhe tu pralayaṃ yāti dehabhṛt| tadottamavidāṃ lokānamalānpratipadyate||14.14||
yada sattve pravriddhe tu pralayam yati dehabhrit tadottamavidam lokanamalanpratipadyate14.14
Meaning
If one dies when Sattva is predominant, one attains the pure higher worlds of those who know the highest. The mode at death influences the next birth.
जब यह जीव (देहभृत्) सत्त्वगुण की प्रवृद्धि में मृत्यु को प्राप्त होता है, तब उत्तम ज्ञानियों के निर्मल अर्थात् स्वर्गादि लोकों को प्राप्त होता है।
This is verse 14 of 27 in Chapter 14 (Gunatraya Vibhaga Yoga) of the Bhagavad Gita.