Bhagavan Shri Krishna said: I will now describe to you that knowledge which is the greatest of all types of knowledge. By knowing this, all the sages were able to attain perfection and reach the highest destination.
Bhagavad Gita - Chapter 14 - Guna Traya Vibhaga Yoga - The Yoga of Understanding the Three Modes of Material Nature
By taking shelter of this knowledge, one attains My nature. He is neither born during creation nor does he suffer during universal annihilation.
mama yonir mahadbrahma tasmin garbham dadhamyaham O Bharata, the vast expanse of material nature is My womb which I impregnate and wherefrom all living beings manifest.
O son of Kunti, all forms of life that are born in this world are ultimately born from the great womb of material nature, and I am the seed-giving father.
Goodness, passion and ignorance are the modes born of material nature. These modes bind the immutable individual being to the material body, O mighty-armed hero.
O virtuous Arjuna, amongst these modes, goodness is free from impurities. It gives knowledge and frees one from distress. It conditions one to pleasure and knowledge.
O son of Kunti, you should know that the mode of passion manifests desire, hankering and attachment. It binds the embodied living beings to their actions.
You should know that the mode of ignorance bewilders all embodied beings, O Bharata. It binds them through confusion, laziness and excessive sleep.
O Bharata, the mode of goodness conditions one to happiness, the mode of passion creates attachment to perform action, and the mode of ignorance covers knowledge and creates bewilderment.
Goodness overpowers passion and ignorance, passion defeats goodness and ignorance, and ignorance overcomes goodness and passion. Thus the modes continually fight for supremacy.