Shiva Purana
विषयद्वयदोषाणां गुणानामीश्वरस्य च ॥ दर्शनादेव सततं विरक्तं जायते मनः ॥ १३ ॥
The mind is detached only on perceiving the defects in the objects and in the attributes of the lord, perpetually.
english translation
viSayadvayadoSANAM guNAnAmIzvarasya ca ॥ darzanAdeva satataM viraktaM jAyate manaH ॥ 13 ॥
hk transliteration by Sanscript