SB 10.74.46

janma-trayānuguṇita-
 vaira-saṁrabdhayā dhiyā
dhyāyaṁs tan-mayatāṁ yāto
 bhāvo hi bhava-kāraṇam
Synonyms: 
janma — births; traya — three; anuguṇita — extending through; vaira — by enmity; saṁrabdhayā — obsessed; dhiyā — with a mentality; dhyāyan — meditating; tat-mayatām — oneness with Him; yātaḥ — attained; bhāvaḥ — one’s attitude; hi — indeed; bhava — of rebirth; kāraṇam — the cause.
Translation: 
Obsessed with hatred of Lord Kṛṣṇa throughout three lifetimes, Śiśupāla attained the Lord’s transcendental nature. Indeed, one’s consciousness determines one’s future birth.
Purport: 

Śiśupāla and his friend Dantavakra, who will be killed by Kṛṣṇa in Chapter Seventy-eight, were previously Jaya and Vijaya, two gatekeepers in Vaikuṇṭha. Because of an offense, the four Kumāras cursed them to take three births in the material world as demons. The first birth was as Hiraṇyākṣa and Hiraṇyakaśipu, the second as Rāvaṇa and Kumbhakarṇa, and the third as Śiśupāla and Dantavakra. In each birth they were completely absorbed in enmity toward the Lord and were slain by Him.

Śrīla Prabhupāda explains the position of Śiśupāla as follows: “Although Śiśupāla acted as the enemy of Kṛṣṇa, he was not for a single moment out of Kṛṣṇa consciousness. He was always absorbed in thought of Kṛṣṇa, and thus he got the salvation of sāyujya-mukti, merging into the existence of the Supreme, and finally became reinstated in his original position of personal service. The Bhagavad-gītā corroborates the fact that one who is absorbed in the thought of the Supreme Lord at the time of death immediately enters the kingdom of God after quitting his material body.”

The Third and Seventh cantos of the Śrīmad-Bhāgavatam elaborately describe the incident wherein the Lord’s personal associates were cursed to come to the material world as His enemies. In this connection, Śrīla Viśvanātha Cakravartī quotes the following verse (Bhāg. 7.1.47):

vairānubandha-tīvreṇa
 dhyānenācyuta-sātmatām
nītau punar hareḥ pārśvaṁ
 jagmatur viṣṇu-pārṣadau

“These two associates of Lord Viṣṇu — Jaya and Vijaya — maintained a feeling of enmity for a very long time. Because of always thinking of Kṛṣṇa in this way, they regained the shelter of the Lord, having returned home, back to Godhead.”