^ On the dates of the Pali canon, Gregory Schopen writes, "We know, and have known for some time, that the Pali canon as we have it — and it is generally conceded to be our oldest source — cannot be taken back further than the last quarter of the first century BCE, the date of the Alu-vihara redaction, the earliest redaction we can have some knowledge of, and that — for a critical history — it can serve, at the very most, only as a source for the Buddhism of this period. But we also know that even this is problematic... In fact, it is not until the time of the commentaries of Buddhaghosa, Dhammapala, and others — that is to say, the fifth to sixth centuries CE — that we can know anything definite about the actual contents of [the Pali] canon."
Classical yoga incorporates epistemology, metaphysics, ethical practices, systematic exercises and self-development techniques for body, mind and spirit. Its epistemology (pramana) and metaphysics is similar to that of the Sāṅkhya school. The metaphysics of Classical Yoga, like Sāṅkhya, is mainly dualistic, positing that there are two distinct realities. These are prakriti (nature), which is the eternal and active unconscious source of the material world and is composed of three gunas, and the puruṣas (persons), the plural consciousnesses which are the intelligent principles of the world, and are multiple, inactive and eternal witnesses. Each person has a individual puruṣa, which is their true self, the witness and the enjoyer, and that which is liberated. This metaphysical system holds that puruṣas undergo cycles of reincarnation through its interaction and identification with prakirti. Liberation, the goal of this system, results from the isolation (kaivalya) of puruṣa from prakirti, and is achieved through a meditation which detaches oneself from the different forms (tattvas) of prakirti. This is done by stilling one's thought waves (citta vritti) and resting in pure awareness of puruṣa.
The spiritual sense of the word yoga first arises in Epic Sanskrit, in the second half of the 1st millennium BCE, and is associated with the philosophical system presented in the Yoga Sutras of Patanjali, with the chief aim of "uniting" the human spirit with the Divine. The term kriyāyoga has a technical meaning in the Yoga Sutras (2.1), designating the "practical" aspects of the philosophy, i.e. the "union with the supreme" due to performance of duties in everyday life.
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:
Alexander the Great reached India in the 4th century BCE. Along with his army, he took Greek academics with him who later wrote memoirs about geography, people and customs they saw. One of Alexander's companion was Onesicritus, quoted in Book 15, Sections 63–65 by Strabo, who describes yogins of India. Onesicritus claims those Indian yogins (Mandanis ) practiced aloofness and "different postures – standing or sitting or lying naked – and motionless".