Śrīmad-Bhāgavatam · Text 6.1.62
Who is speaking and story frame
स्तम्भयन्नात्मनात्मानं यावत्सत्त्वं यथाश्रुतम् ।
न शशाक समाधातुं मनो मदनवेपितम् ॥ ६२ ॥
stambhayann ātmanātmānaṁ
yāvat sattvaṁ yathā-śrutam
na śaśāka samādhātuṁ
mano madana-vepitam
As far as possible he patiently tried to remember the instructions of the śāstras not even to see a woman. With the help of this knowledge and his intellect, he tried to control his lusty desires, but because of the force of Cupid within his heart, he failed to control his mind.
Read Śrīla Prabhupāda's purport on Vedabase.io