Śrīmad-Bhāgavatam · Text 6.1.63
Who is speaking and story frame
तन्निमित्तस्मरव्याजग्रहग्रस्तो विचेतन: ।
तामेव मनसा ध्यायन् स्वधर्माद्विरराम ह ॥ ६३ ॥
tan-nimitta-smara-vyāja-
graha-grasto vicetanaḥ
tām eva manasā dhyāyan
sva-dharmād virarāma ha
In the same way that the sun and moon are eclipsed by a low planet, the brāhmaṇa lost all his good sense. Taking advantage of this situation, he always thought of the prostitute, and within a short time he took her as a servant in his house and abandoned all the regulative principles of a brāhmaṇa.
Read Śrīla Prabhupāda's purport on Vedabase.io