Śrīmad-Bhāgavatam · Texts 8.4.11-12
Who is speaking and story frame
श्रीशुक उवाच
एवं शप्त्वा गतोऽगस्त्यो भगवान् नृप सानुग: ।
इन्द्रद्युम्नोऽपि राजर्षिर्दिष्टं तदुपधारयन् ॥ ११ ॥
आपन्न: कौञ्जरीं योनिमात्मस्मृतिविनाशिनीम् ।
हर्यर्चनानुभावेन यद्गजत्वेऽप्यनुस्मृति: ॥ १२ ॥
śrī-śuka uvāca
evaṁ śaptvā gato ’gastyo
bhagavān nṛpa sānugaḥ
indradyumno ’pi rājarṣir
diṣṭaṁ tad upadhārayan
āpannaḥ kauñjarīṁ yonim
ātma-smṛti-vināśinīm
hary-arcanānubhāvena
yad-gajatve ’py anusmṛtiḥ
Śukadeva Gosvāmī continued: My dear King, after Agastya Muni had thus cursed King Indradyumna, the Muni left that place along with his disciples. Since the King was a devotee, he accepted Agastya Muni’s curse as welcome because it was the desire of the Supreme Personality of Godhead. Therefore, although in his next life he got the body of an elephant, because of devotional service he remembered how to worship and offer prayers to the Lord.
Read Śrīla Prabhupāda's purport on Vedabase.io