If one always thinks of something, he certainly gets a related body after death. Mahārāja Āgnīdhra was always thinking of Pitṛloka, the place where his wife had returned. Therefore after his death he achieved that same planet, probably to live with her again. Bhagavad-gītā also says:
- yaṁ yaṁ vāpi smaran bhāvaṁ
- tyajaty ante kalevaram
- taṁ tam evaiti kaunteya
- sadā tad-bhāva-bhāvitaḥ
"Whatever state of being one remembers when he quits his body, that state he will attain without fail." (BG 8.6) We can naturally conclude that if we always think of Kṛṣṇa or become fully Kṛṣṇa conscious, we can be promoted to the planet of Goloka Vṛndāvana, where Kṛṣṇa eternally lives.