Question
How to overcome maya?
Answer
"satsangatve nissangatvam
nissangatve nirmOhatvam
nirmOhatve nizcala tatvam
nizcala tatve jIvanmuktiH"-Sankaracharya in bhaja govindam.
The second line in the above verse is what you are looking for. Sankara says release from attachment progresses one towards overcoming maya and such non-attachment is achieved through continuous company of the pious.
Translation of the whole sloka is given in the linked answer.
https://hinduism.stackexchange.com/a/7697/1195
Note: “The question: How to overcome maya?” is licensed by Stack Exchange Inc (https://hinduism.stackexchange.com/); user contributions licensed under CC BY-SA.