Śrīmad-Bhāgavatam · Text 7.10.39
Who is speaking and story frame
एन: पूर्वकृतं यत् तद् राजान: कृष्णवैरिण: ।
जहुस्तेऽन्ते तदात्मान: कीट: पेशस्कृतो यथा ॥ ३९ ॥
enaḥ pūrva-kṛtaṁ yat tad
rājānaḥ kṛṣṇa-vairiṇaḥ
jahus te ’nte tad-ātmānaḥ
kīṭaḥ peśaskṛto yathā
Not only Śiśupāla and Dantavakra but also many, many other kings who acted as enemies of Kṛṣṇa attained salvation at the time of death. Because they thought of the Lord, they received spiritual bodies and forms the same as His, just as worms captured by a black drone obtain the same type of body as the drone.
Read Śrīla Prabhupāda's purport on Vedabase.io