The Chandogya Upanishad tells of a time when both the gods and the demons wanted to understand the Self, so that whoever grasped it first would gain mastery over all worlds. The gods sent Indra, their king, and the demons sent Virochana, one of their own leaders. Both arrived at the dwelling of Prajapati, the creator, and both lived as his students for thirty-two years, tending fires and serving without complaint, as students of that age were expected to do.
At the end of their long service, Prajapati asked them what they had come for. They said they wished to know the Self, the one free from evil, free from old age, free from death and sorrow, free from hunger and thirst.
The First Answer, and Why It Was a Test
Prajapati told them to look at their own reflection in a pan of water and tell him what they saw. Both looked and reported back: they saw their own bodies, complete, hair and nails included, reflected clearly in the water.
Prajapati told them that this reflection was the Self they were looking for. Satisfied, Indra and Virochana left, each believing he had received the highest teaching. Prajapati, watching them go, remarked to himself that neither had actually understood, and that whoever accepted this as the final truth would fall into ruin.
Virochana Was Content. Indra Was Not.
Virochana returned to the demons and taught them what he had learned: that the body itself is the Self, and that one should adorn and gratify the body, since it is all there is. This became, the Upanishad notes, the doctrine the demons follow to this day, one that mistakes the reflection for the reality.
Indra, walking back toward the gods, stopped partway. He reasoned it through on his own: if the Self is simply the body, then when the body is well-dressed, the Self is well-dressed, and when the body is injured or dies, the Self dies with it. This teaching offered no real freedom from suffering at all. Something was missing.
Indra Goes Back, Three More Times
Indra returned to Prajapati and served another thirty-two years before asking again. Prajapati gave him a better answer, still incomplete: the Self is the one who moves happily in dreams. Indra walked away again, thought it through, and realized that in dreams one still suffers, still feels struck down or chased, still experiences distress. This too fell short.
He returned a third time, served another thirty-two years, and was told the Self is the one at peace in deep, dreamless sleep, aware of nothing at all. Indra considered this on his way home and realized that a state with no awareness of self or anything else was close to non-existence. That could not be freedom either.
He went back a fourth time. After this last period of service, Prajapati finally gave him the complete teaching: the true Self is not the body, not the dream-self, not the blank unconsciousness of deep sleep, but the pure, undivided awareness underlying all three states, distinct from the body, untouched by death, unconditioned by any particular experience.
Why the Story Keeps Two Endings
The Chandogya Upanishad deliberately gives Indra and Virochana the identical teacher, the identical question, and the identical first answer. Virochana took the first convenient answer and built an entire philosophy of the demons on it. Indra kept returning, kept testing the answer against his own experience, and refused to settle until the answer actually held up.
The text is not suggesting Virochana was foolish and Indra was wise from the start. It is showing that the same teaching, received without persistence, becomes a trap, while the same teaching, tested and re-examined, eventually opens into the truth it was pointing at all along.