Yamas, and its complement, niyamas, represent a series of "right living" or ethical rules within Hinduism and Yoga. These are a form of moral imperatives, commandments, rules or goals. The five Yamas of Patañjali's classical yoga system are committments that affect the yogi's relations with others. The five Niyamas of Patañjali's classical yoga system are personal obligations to live well.
^Devanand, G. K. Teaching of Yoga. APH Publishing. p. 45. ISBN9788131301722. Yama is a "moral restraint" or rule for living virtuously. Ten yamas are codified in numerous scriptures, including the Hatha Yoga Pradeepika compiled by Yogi Swatmarama, while Patanjali lists five yamas and five niyamas (disciplines) in the Yoga Sutra.