The origins of yoga have been speculated to date back to pre-Vedic Indian traditions; it is mentioned in the Rigveda,[note 1] but most likely developed around the sixth and fifth centuries BCE, in ancient India's ascetic and śramaṇa movements.[note 2] The chronology of earliest texts describing yoga-practices is unclear, varyingly credited to Upanishads. The Yoga Sutras of Patanjali date from the first half of the 1st millennium CE, but only gained prominence in the West in the 20th century. Hatha yoga texts emerged around the 11th century with origins in tantra.
^ Gavin Flood: "These renouncer traditions offered a new vision of the human condition which became incorporated, to some degree, into the worldview of the Brahman householder. The ideology of asceticism and renunciation seems, at first, discontinuous with the brahmanical ideology of the affirmation of social obligations and the performance of public and domestic rituals. Indeed, there has been some debate as to whether asceticism and its ideas of retributive action, reincarnation and spiritual liberation, might not have originated outside the orthodox vedic sphere, or even outside Aryan culture: that a divergent historical origin might account for the apparent contradiction within 'Hinduism' between the world affirmation of the householder and the world negation of the renouncer. However, this dichotomization is too simplistic, for continuities can undoubtedly be found between renunciation and vedic Brahmanism, while elements from non-Brahmanical, Sramana traditions also played an important part in the formation of the renunciate ideal. Indeed there are continuities between vedic Brahmanism and Buddhism, and it has been argued that the Buddha sought to return to the ideals of a vedic society which he saw as being eroded in his own day."