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.
^ James Mallinson, "Sāktism and Hathayoga," 28 June 2012.
Archived 16 June 2013 at the Wayback Machine [accessed 19 September 2013] pgs. 2 "The earliest references to hathayoga are scattered mentions in Buddhist canonical works and their exegesis dating from the eighth century onwards, in which it is the soteriological method of last resort."
During the Gupta period (4th to 5th centuries), a movement of northern Mahāyāna Buddhism termed Yogācāra began to be systematized with the writings of the Buddhist scholars Asanga and Vasubandhu. Yogācāra Buddhism received the name as it provided a "yoga," a systematic framework for engaging in the practices that lead through the path of the bodhisattva towards awakening and full Buddhahood. Its teachings can be found in the comprehensive and encyclopedic work, the Yogācārabhūmi-Śāstra (Treatise on the Foundation for Yoga Practitioners), which was also translated into Tibetan and Chinese and thus exerted a profound influence on the East Asian Buddhist and Tibetan Buddhist traditions. According to Mallinson and Singleton, the study of Yogācāra Buddhism is essential for the understanding of yoga's early history, and its teachings influenced the text of the Pātañjalayogaśāstra.