Although Patañjali’s yoga is based on non-theistic Sāṃkhya philosophy, it also includes devotion to a deity. This is part of a “yoga of action”, which has parallels to karma-yoga in the Gītā. The Gītā and the Yoga Sūtras teach a similar approach, combining effort with detachment.