The hymns in Book 2 of the Shvetashvatara Upanishad, another late first millennium BCE text, states a procedure in which the body is held in upright posture, the breath is restrained and mind is meditatively focussed, preferably inside a cave or a place that is simple, plain, of silence or gently flowing water, with no noises nor harsh winds.
The Bhagavad Gita ('Song of the Lord') is part of the Mahabharata and also contains extensive teachings on Yoga. According to According to Mallinson and Singleton, the Gita "seeks to appropriate yoga from the renunciate milieu in which it originated, teaching that it is compatible with worldly activity carried out according to one's caste and life stage; it is only the fruits of one's actions that are to be renounced." In addition to an entire chapter (ch. 6) dedicated to traditional yoga practice, including meditation, it introduces three prominent types of yoga:
There is no consensus on its chronology or specific origin other than that yoga developed in ancient India. Suggested origins are the Indus Valley Civilization (3300–1900 BCE) and pre-Vedic Eastern states of India, the Vedic period (1500–500 BCE), and the śramaṇa movement. According to Gavin Flood, continuities may exist between those various traditions: