The good and the pleasant are two different things. Both serve different purposes and can bind a person. A person who chooses the good will prosper, but one who chooses the pleasant will miss out on what is truly important.
Hindu
Yama
Yama is the revered Hindu lord of dharma and guardian of cosmic order, honored as Dharmaraja. As the great teacher of young Nachiketa in the Katha Upanishad, he imparts timeless wisdom on the eternal Self and the path to immortality.
Yama holds a place of profound reverence in the Hindu tradition as the upholder of dharma, the keeper of cosmic order, and one of the most illuminating teachers of the eternal Self. Known by the honored title Dharmaraja, the King of Righteousness, he embodies the principle that the universe is governed by an unfailing moral and spiritual law. In him the tradition celebrates the dignity of justice, the steadiness of truth, and the assurance that every soul moves within a harmonious and benevolent order. In the earliest Vedic hymns, particularly the Rigveda, Yama is honored as a luminous and pioneering figure, the first to traverse the path beyond mortal life and to discover the way to the celestial abodes of the ancestors. For this he is cherished as a guide and forerunner, one who walks ahead so that others may follow with confidence. He is remembered as a child of Surya, the radiant sun, born of Sanjna, and as the twin of Yami, with the sacred river Yamuna and the noble Manu counted among his kin. His very name, meaning twin, evokes balance, companionship, and the gentle pairing of complementary forces. Across the tradition he is associated with order, time, and the sure and impartial measure of all things. Yama's most beloved and luminous role unfolds in the Katha Upanishad, one of the principal Upanishads of the Krishna Yajurveda, where he becomes the patient and generous teacher of the young, fearless seeker Nachiketa. When the boy arrives at Yama's abode and waits three nights, Yama, ever gracious and mindful of the duties of hospitality, offers him three boons in recompense. With the first, Nachiketa asks for the peace and loving welcome of his father; with the second, he learns the sacred fire ritual, which Yama lovingly teaches and which is thereafter named the Nachiketa fire in the boy's honor. With the third boon, Nachiketa poses the deepest of all questions: what becomes of the Self when the body falls away? It is in answering this question that Yama reveals the full grandeur of his wisdom. He gently tests the young seeker, offering instead wealth, long life, and every earthly delight; but when Nachiketa steadfastly sets these aside as fleeting, Yama rejoices in finding a worthy student and opens to him the highest knowledge. He draws the celebrated distinction between the pleasant, preya, and the good, shreya, teaching that the truly wise choose the path of lasting good over momentary pleasure. The pleasant gratifies the senses and soon passes away, while the good, though demanding effort, discipline, and discernment, leads to that which is eternal. Yama then unveils the great truth of the atman, the innermost Self, which is unborn and undying, ancient and ever new. In words cherished by seekers across the ages, he teaches that the Self is not slain when the body is slain, that it neither is born nor dies, but abides forever in serene, changeless reality. To make this wisdom vivid he offers the immortal metaphor of the chariot: the Self is the rider, the body is the chariot, the intellect is the charioteer, the mind the reins, and the senses the horses that draw it along the paths of experience. The one who holds the reins of the mind with wisdom and keeps the senses well governed reaches the supreme goal and is freed from the wandering cycle of birth and rebirth, while the one who lets the senses run unchecked remains bound. Through this teaching Yama gently calls every soul toward self-mastery, inner discipline, and the steady practice of yoga and meditation that leads to realization of one's own deathless nature. Through the centuries, Yama's instruction to Nachiketa has been treasured as one of the supreme jewels of spiritual literature, a serene and reassuring dialogue on death, immortality, and the abiding peace that lies beyond fear. In Yama the tradition honors not merely a guardian of order but a compassionate teacher who lifts the sincere seeker from doubt into the radiance of self-knowledge. His iconography, often showing him with staff and mount, expresses the dignity and constancy of dharma itself. To remember Yama is to be reminded that righteousness sustains the cosmos, that wisdom is to be chosen over fleeting comfort, and that the true Self, eternal and luminous, can never be touched by death. In this way his legacy continues to console, instruct, and elevate the hearts of all who turn toward the deeper questions of life.
Wisdom
Both good and pleasant things are available to a person. A calm and composed person examines them carefully and makes a distinction. They prefer the good over the pleasant, but a foolish person chooses the pleasant due to greed and selfishness.
Ignorance and knowledge are two separate paths that lead to different destinations. I consider you, Nachiketa, to be someone who desires knowledge, because even many pleasures could not distract you from your goal.
Fools who live in darkness but consider themselves wise and knowledgeable, wander around in circles, following twisted paths, like blind people being led by other blind people.
The afterlife is not revealed to someone who lacks discernment, is careless, and is deluded by wealth. They think, 'This world is all that exists, and there is no other.' Such a person repeatedly comes under my control.
Yama said, 'The self-existent Supreme Lord created the sense organs with outward tendencies, thereby imposing a limitation on them. As a result, humans can only perceive external objects with these sense organs and not their inner Self.'
One who has acquired purity of mind through frequent giving should then give cows as gifts.
Choose sons and grandsons who will live a hundred years, choose elephants, horses, cattle, and gold.
Yama said, 'I don't know the exact time of one's life, as ordained by Time. Therefore, without Time's urging, I cannot let someone stay here. I take note of the good or bad deeds one does in the world.
Yama, with his pure deeds, acquired the knowledge of these mysteries through his well-observed vows and yoga meditation, which were the high fruits of his penance