Srimad Bhagavatam Canto 11, Chapter 20, Text 23

SB 11.20.23

nirvinnasya viraktasya
 purusasyokta-vedinah
manas tyajati dauratmyam
 cintitasyanucintaya
 
Translation: 
 
When a person is disgusted with the temporary, illusory nature of this world and is thus detached from it, his mind, guided by the instructions of his spiritual master, considers again and again the nature of this world and eventually gives up the false identification with matter.
 
Purport: 
 
Although it is difficult to control the mind, by constant practice the mind can be spiritualized in Krsna consciousness. A sincere disciple constantly remembers the instructions of his spiritual master and thereby faces again and again the stark truth that the material world is not the ultimate reality. By detachment and perseverance the mind gradually gives up its propensity toward sense gratification; thus illusion loses its grip on a sincere Krsna conscious devotee. Gradually the purified mind completely gives up the false identification with this world and transfers its attention to the spiritual platform. Then one is considered to be perfect in the yoga system.
Srimad Bhagavatam Canto 11, Chapter 20, Text 22
Srimad Bhagavatam Canto 11, Chapter 20, Text 24