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:
^ * Wynne states that "The Nasadiyasukta, one of the earliest and most important cosmogonic tracts in the early Brahminic literature, contains evidence suggesting it was closely related to a tradition of early Brahminic contemplation. A close reading of this text suggests that it was closely related to a tradition of early Brahminic contemplation. The poem may have been composed by contemplatives, but even if not, an argument can be made that it marks the beginning of the contemplative/meditative trend in Indian thought."
An influential text which teaches yoga from an Advaita perspective of nondualistic idealism is the Yoga-Vāsiṣṭha. This work uses numerous short stories and anecdotes to illustrate its main ideas. It teaches seven stages or bhumis of yogic practice. It was a major reference for medieval Advaita Vedanta yoga scholars and before the 12th century, it was one of the most popular texts on Hindu yoga.