In Hardwar, Ajāmila took shelter at a Viṣṇu temple, where he executed the process of bhakti-yoga. He controlled his senses and fully applied his mind in the service of the Lord.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
स तस्मिन् देवसदन आसीनो योगमाश्रितः । प्रत्याहृतेन्द्रियग्रामो युयोज मन आत्मनि
sa tasmin devasadana āsīno yogamāśritaḥ | pratyāhṛtendriyagrāmo yuyoja mana ātmani
SB 6.2.40