When the light of knowledge illuminates all the senses of the body, it should be understood that the mode of goodness is most prevalent.
Bhagavad Gita - Chapter 14 - Guna Traya Vibhaga Yoga - The Yoga of Understanding the Three Modes of Material Nature
O best of the Bharata Dynasty, when the mode of passion is most predominant one is under the influence of greed, selfish activities, ambition, restlessness and hankering.
O descendent of Kuru, by the influence of the mode of ignorance, then darkness, laziness, confusion and delusion are manifest.
When an embodied being dies under the influence of the mode of goodness, he reaches the higher planets wherein those of great intellect reside.
When one dies in the mode of passion, he is reborn amongst those who are attached to worldly activities. If one dies in the mode of ignorance, he takes birth again in the womb of unintelligent people.
It has been said that the result of good deeds is purity, the results of passionate activities is misery, and the result of actions in ignorance is bewilderment.
Goodness gives birth to knowledge, passion gives rise to greed and ignorance breeds illusion, confusion and a lack of knowledge.
Those in goodness attain the higher realms, those in passion remain in the middle (the earth planet) and those in ignorance descend to the lower planes of life.
When one perceives that there is no other active agent except the modes of nature, and he knows the Supreme, he attains My nature.
By transcending these three modes that appear within the body, one becomes liberated from the miseries of birth, death, old age and other miseries. Then one tastes the nectar of immortality.