One verse

Srimad Bhagavatam 6.2.40

6.2.40

स तस्मिन् देवसदन आसीनो योगमास्थित: । प्रत्याहृतेन्द्रियग्रामो युयोज मन आत्मनि ॥ ४० ॥

sa tasmin deva-sadana asino yogam asthitah pratyahrtendriya-gramo yuyoja mana atmani

sah
he (Ajamila)
tasmin
at that place (Hardwar)
deva-sadane
in one Visnu temple
asinah
being situated
yogam asthitah
performed bhakti-yoga
pratyahrta
withdrawn from all activities of sense gratification
indriya-gramah
his senses
yuyoja
he fixed
manah
the mind
atmani
on the self or the Supersoul, the Supreme Personality of Godhead.

In Hardwar, Ajamila took shelter at a Visnu temple, where he executed the process of bhakti-yoga. He controlled his senses and fully applied his mind in the service of the Lord.