The wise give up the results of their actions and thus liberate themselves from the bondage of material birth and death. Thus they attain the plane beyond all suffering.
Bhagavad Gita - Chapter 2 - Sankhya Yoga - The Yoga of Analysis
Once your intelligence is able to pass through the dense jungle of illusion, you will become indifferent to all that has been heard and all that is yet to be heard.
When your mind is no longer affected by the false interpretations of the Vedas, then you will attain the perfect stage of yoga.
Arjuna said: O Keshava, what are the characteristics of that person who is perfectly situated in divine wisdom and fully absorbed in pure spiritual consciousness (samadhi)? How does he speak? How does he sit? How does he walk?
Bhagavan Shri Krishna said: O Partha, When the living being abandons all material desires that enter the mind and becomes self-satisfied within, then that person is said to be situated in divine knowledge.
One whose mind remains undisturbed by distress, who has no desire for pleasure, who is free from mundane attachment, fear and anger, is a sage of steady mind.
One who is unattached to anything in this world and who does not become joyful or resentful on attaining good or evil, is firmly established in wisdom.
When one is able to withdraw the senses from senseobjects, just as a tortoise withdraws its limbs, then he is firmly established in wisdom.
An embodied living being may renounce sense-objects, but the taste for enjoying them remains. However, this too also ceases for one who realizes the Supreme.
Yet the turbulent senses can forcibly steal the mind of even a wise man of sound judgment, O son of Kunti.