Just as fire applied to gold removes any discoloration caused by traces of other metals, Lord Viṣṇu within the heart purifies the minds of the yogīs.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
यथा हेम्नि स्थितो वह्निर्दुर्वर्णं हन्ति धातुजम् । एवमात्मगतो विष्णुर्योगिनामशुभाशयम्
yathā hemni sthito vahnirdurvarṇaṃ hanti dhātujam | evamātmagato viṣṇuryogināmaśubhāśayam
SB 12.3.47