Where right thinking arises, the knowledge of self emerges.The delusion being destroyed by this knowledge the sould attains the state of liberation.