The Yoga Yajnavalkya is a classical treatise on yoga attributed to the Vedic sage Yajnavalkya. It takes the form of a dialogue between Yajnavalkya and Gargi, a renowned philosopher. The text contains 12 chapters and its origin has been traced to the period between the second century BCE and fourth century CE. Many yoga texts like the Hatha Yoga Pradipika, the Yoga Kundalini and the Yoga Tattva Upanishads have borrowed verses from or make frequent references to the Yoga Yajnavalkya. The Yoga Yajnavalkya discusses eight yoga Asanas – Swastika, Gomukha, Padma, Vira, Simha, Bhadra, Mukta and Mayura, numerous breathing exercises for body cleansing, and meditation.
In the early 11th century, the Persian scholar Al Biruni visited India, lived with Hindus for 16 years, and with their help translated several significant Sanskrit works into Arabic and Persian languages. One of these was Patanjali's Yogasutras. Al Biruni's translation preserved many of the core themes of Patañjali 's Yoga philosophy, but certain sutras and analytical commentaries were restated making it more consistent with Islamic monotheistic theology. Al Biruni's version of Yoga Sutras reached Persia and Arabian peninsula by about 1050 AD. Later, in the 16th century, the hath yoga text Amritakunda was translated into Arabic and then Persian. Yoga was, however, not accepted by mainstream Sunni and Shia Islam. Minority Islamic sects such as the mystic Sufi movement, particularly in South Asia, adopted Indian yoga practises, including postures and breath control. Muhammad Ghawth, a Shattari Sufi and one of the translators of yoga text in 16th century, drew controversy for his interest in yoga and was persecuted for his Sufi beliefs.
Samuel states that Tantrism is a contested concept. Tantra yoga may be described, according to Samuel, as practices in 9th to 10th century Buddhist and Hindu (Saiva, Shakti) texts, which included yogic practices with elaborate deity visualizations using geometrical arrays and drawings (mandala), fierce male and particularly female deities, transgressive life stage related rituals, extensive use of chakras and mantras, and sexual techniques, all aimed to help one's health, long life and liberation.
The Gita consists of 18 chapters and 700 shlokas (verses), with each chapter named as a different yoga, thus delineating eighteen different yogas. Some scholars divide the Gita into three sections, with the first six chapters with 280 shlokas dealing with Karma yoga, the middle six containing 209 shlokas with Bhakti yoga, and the last six chapters with 211 shlokas as Jnana yoga; however, this is rough because elements of karma, bhakti and jnana are found in all chapters.
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 sometimes between the 9th and 11th century with origins in tantra.