Verse 39

बभार हृदयाकाशे मनः संयममागतम् ।विन्ध्यखात इवोन्मत्तं गजं युक्तिवशीकृतम्

In plain words

He held, in the space of the heart, the mind now come under restraint — as a ravine of the Vindhyas holds a maddened elephant subdued through skill.