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.
One of the best known early expressions of Brahmanical Yoga thought is the Yoga Sutras of Patanjali , the original name of which may have been the Pātañjalayogaśāstra-sāṃkhya-pravacana (c. sometime between 325 - 425) which some scholars now believe included both the sutras and a commentary. As the name suggests, the metaphysical basis for this text is the Indian philosophy termed Sāṃkhya. This atheistic school is mentioned in Kauṭilya's Arthashastra as one of the three categories of anviksikis (philosophies) along with Yoga and Cārvāka. The two schools have some differences as well. Yoga accepted the conception of "personal god", while Samkhya developed as a rationalist, non-theistic/atheistic system of Hindu philosophy. Sometimes Patanjali's system is referred to as Seshvara Samkhya in contradistinction to Kapila's Nirivara Samkhya. The parallels between Yoga and Samkhya were so close that Max Müller says that "the two philosophies were in popular parlance distinguished from each other as Samkhya with and Samkhya without a Lord." https://buzzingoffer.tumblr.com/