Srimad Bhagavatam Canto 11, Chapter 08, Text 27

SB 11.8.27

tasya vittasaya susyad-
 vaktraya dina-cetasah
nirvedah paramo jajñe
 cinta-hetuh sukhavahah
 
Translation: 
 
As the night wore on, the prostitute, who intensely desired money, gradually became morose, and her face dried up. Thus being filled with anxiety for money and most disappointed, she began to feel a great detachment from her situation, and happiness arose in her mind.
 
Purport: 
 
It appears from these verses that on this particular night the prostitute Pingala was not at all successful in attracting customers to her house. Being completely frustrated and disappointed, she gradually became indifferent to her situation. Thus, great suffering sometimes leads one to the path of enlightenment; or, according to a Sanskrit proverb, disappointment gives rise to the greatest satisfaction.
 
The prostitute had dedicated her life to satisfying the lusty desires of many men. Engaging her mind, body and words in the service of paying lovers, she completely forgot the devotional service of the Supreme Personality of Godhead, and thus her mind was most unsteady and disturbed. Finally, being completely frustrated, her face and throat drying up, she began to feel indifferent to her situation, and happiness arose in her mind.

 

Srimad Bhagavatam Canto 11, Chapter 08, Text 25-26
Srimad Bhagavatam Canto 11, Chapter 08, Text 28