Śrīmad-Bhāgavatam · Text 8.4.10
Who is speaking and story frame
तस्मा इमं शापमदादसाधु-
रयं दुरात्माकृतबुद्धिरद्य ।
विप्रावमन्ता विशतां तमिस्रं
यथा गज: स्तब्धमति: स एव ॥ १० ॥
tasmā imaṁ śāpam adād asādhur
ayaṁ durātmākṛta-buddhir adya
viprāvamantā viśatāṁ tamisraṁ
yathā gajaḥ stabdha-matiḥ sa eva
Agastya Muni then spoke this curse against the King: This King Indradyumna is not at all gentle. Being low and uneducated, he has insulted a brāhmaṇa. May he therefore enter the region of darkness and receive the dull, dumb body of an elephant.
Read Śrīla Prabhupāda's purport on Vedabase.io