Srimad-Bhagavatam: Canto 9 - Chapter 1 - Verse 22
Sanskrit:
गृहीतो लीलया स्त्रीणां समक्षं कृतकिल्बिष: ।माहिष्मत्यां सन्निरुद्धो मुक्तो येन कपिर्यथा ॥ २२ ॥
ITRANS:
gṛhīto līlayā strīṇāṁsamakṣaṁ kṛta-kilbiṣaḥmāhiṣmatyāṁ sanniruddhomukto yena kapir yathā
Translation:
When Rāvaṇa attempted to insult Kārtavīryārjuna in the presence of the women and thus offended him, Kārtavīryārjuna easily arrested Rāvaṇa and put him in custody in the city of Māhiṣmatī, just as one captures a monkey, and then released him neglectfully.