Chapter 14 · The Three Qualities · Krishna said
Bhagavad Gita 14.14 — Dying in sattva
यदा सत्त्वे प्रवृद्धे तु प्रलयं याति देहभृत्। तदोत्तमविदां लोकानमलान्प्रतिपद्यते ॥
yadā sattve pravṛddhe tu pralayaṃ yāti dehabhṛt | tadottamavidāṃ lokānamalānpratipadyate ||
Meaning
If a person dies when sattva is strong, they reach the pure worlds of those who know the highest.