Niyama (The five "observances"): Śauca (purity, clearness of mind, speech and body), Santosha (contentment, acceptance of others and of one's circumstances), Tapas (persistent meditation, perseverance, austerity), Svādhyāya (study of self, self-reflection, study of Vedas), and Ishvara-Pranidhana (contemplation of God/Supreme Being/True Self).
The Rigveda, however, does not describe yoga, and there is little evidence as to what the practices were. Early references to practices that later became part of yoga, are made in Brihadaranyaka Upanishad, the earliest Hindu Upanishad. For example, the practice of pranayama (consciously regulating breath) is mentioned in hymn 1.5.23 of Brihadaranyaka Upanishad (c. 900 BCE), and the practice of pratyahara (concentrating all of one's senses on self) is mentioned in hymn 8.15 of Chandogya Upanishad (c. 800–700 BCE).[note 8] The Jaiminiya Upanishad Brahmana teaches mantra repetition and control of the breath.
Various yogic groups had become prominent in Punjab in the 15th and 16th century, when Sikhism was in its nascent stage. Compositions of Guru Nanak, the founder of Sikhism, describe many dialogues he had with Jogis, a Hindu community which practiced yoga. Guru Nanak rejected the austerities, rites and rituals connected with Hatha Yoga. He propounded the path of Sahaja yoga or Nama yoga (meditation on the name) instead. The Guru Granth Sahib states:
^ 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."
The Yoga Sutras are also influenced by the Sramana traditions of Buddhism and Jainism, and may represent a further Brahmanical attempt to adopt yoga from the Sramana traditions. As noted by Larson, there are numerous parallels in the concepts in ancient Samkhya, Yoga and Abhidharma Buddhist schools of thought, particularly from 2nd century BCE to 1st century AD. Patanjali's Yoga Sutras is a synthesis of these three traditions. From Samkhya, the Yoga Sutras adopt the "reflective discernment" (adhyavasaya) of prakrti and purusa (dualism), its metaphysical rationalism, as well its three epistemic methods of gaining reliable knowledge. From Abhidharma Buddhism's idea of nirodhasamadhi, suggests Larson, Yoga Sutras adopt the pursuit of altered state of awareness, but unlike Buddhism's concept of no self nor soul, Yoga is physicalist and realist like Samkhya in believing that each individual has a self and soul. The third concept Yoga Sutras synthesize into its philosophy is the ancient ascetic traditions of meditation and introspection, as well as the yoga ideas from middle Upanishads such as Katha, Shvetashvatara and Maitri.
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.
The early Buddhist texts describe yogic and meditative practices, some of which the Buddha borrowed from the śramaṇa tradition. The Pali canon contains three passages in which the Buddha describes pressing the tongue against the palate for the purposes of controlling hunger or the mind, depending on the passage. However, there is no mention of the tongue being inserted into the nasopharynx as in true khecarī mudrā. The Buddha used a posture where pressure is put on the perineum with the heel, similar to even modern postures used to stimulate Kundalini. Some of the major suttas that discuss yogic practice include the Satipatthana sutta (Four foundations of mindfulness sutta) and the Anapanasati sutta (Mindfulness of breathing sutta).
The earliest references to hatha yoga are in Buddhist works dating from the eighth century. The earliest definition of hatha yoga is found in the 11th century Buddhist text Vimalaprabha, which defines it in relation to the center channel, bindu etc. Hatha yoga synthesizes elements of Patanjali's Yoga Sutras with posture and breathing exercises. It marks the development of asanas (plural) into the full body 'postures' now in popular usage and, along with its many modern variations, is the style that many people associate with the word yoga today.