Vasishta states that peace of mind (shanti), contentment (santosha), keeping the company of realized sages (satsanga), and inquiry into the nature of the soul (vichara) are the four sentinels that guard the gates to moksha, or liberation. The belief that one is confined by fate is severely condemned and the person who seeks spiritual development is urged to rely on personal efforts for progress on the spiritual path.
That the world is a creation of will and loses itself with the absence of our desires, and that it is an accursed and unsubstantial world after all, are the conclusions arrived at by all sages.
There is but one undivided intelligent spirit known as the Universal Soul and nothing else. It becomes confined by its desires (mental conditioning) and becomes freed by its lack of them.
Rama knows that curtailing desires is what the wise call liberty, and the attachment of our desires to earthly objects is our confinement here. Spiritual knowledge is easily obtainable by most men, but a distaste for (pleasurable) objects is hard to be had. He who fully comprehends a thing is said to know it, and who so knows what is knowable is called a learned man. No earthly enjoyment can be delectable to such high minded men. The mind that has no zest for earthly pleasures, except the glory of disinterested deeds, is said to be liberated even in the present life.
It will not be difficult for you to teach the spotless Rama, whose mirror-like mind is quite clear to take the reflection. The wisdom of the holy, their learning of the scriptures, and the scholarship of the learned are only praiseworthy when they are communicated to a good student and those who are disgusted with the world. But instruction given to one who is neither student nor disgusted with the world becomes as polluted as milk stored in a hide vessel. Again, the instruction given by one devoid of passions and affections, fear and anger, pride and sin, serves to infuse tranquility into the mind.
Excerpts from “Yoga Vasishta” by Sage Valmiki, translated by Vihari Lala Mitra