The Upanishads · Brihadaranyaka Upanishad
Adhyaya 5, Brahmana 11
Ask AIELEVENTH BRÂHMANA.
This is indeed the highest penance, if a man, laid up with sickness, suffers pain1. He who knows this, conquers the highest world.
This is indeed the highest penance, if they carry a dead person into the forest2. He who knows this, conquers the highest world.
This is indeed the highest penance, if they place a dead person on the fire3. He who knows this, conquers the highest world.
Footnotes (3)
194:1.The meaning is that, while he is suffering pain from illness, he should think that he was performing penance. If he does that, he obtains the same reward for his sickness which he would have obtained for similar pain inflicted on himself for the sake of performing penance.
194:2.This is like the penance of leaving the village and living in the forest.
194:3.This is like the penance of entering into the fire.
Principal Upanishads by the Upanishadic rishis and teachers, among them Yajnavalkya, Uddalaka Aruni, Shandilya and Pippalada. Translated by F. Max Müller (1823–1900), The Upanishads, Parts I and II, Sacred Books of the East, vol. 1 (1879) and vol. 15 (1884), Oxford: Clarendon Press. Source: sacred-texts.com (Sacred Books of the East, vols. 1 and 15). Public domain in India and the USA: published 1879 and 1884; the translator died in 1900.