Bg 14.14

yadā sattve pravṛddhe tu
pralayaṁ yāti deha-bhṛt
tadottama-vidāṁ lokān
amalān pratipadyate
Synonyms: 
yadā — when; sattve — the mode of goodness; pravṛddhe — developed; tu — but; pralayam — dissolution; yāti — goes; deha-bhṛt — the embodied; tadā — at that time; uttama-vidām — of the great sages; lokān — the planets; amalān — pure; pratipadyate — attains.
Translation: 
When one dies in the mode of goodness, he attains to the pure higher planets of the great sages.
Purport: 

One in goodness attains higher planetary systems, like Brahmaloka or Janaloka, and there enjoys godly happiness. The word amalān is significant; it means “free from the modes of passion and ignorance.” There are impurities in the material world, but the mode of goodness is the purest form of existence in the material world. There are different kinds of planets for different kinds of living entities. Those who die in the mode of goodness are elevated to the planets where great sages and great devotees live.