Sankhya Kārika
Karika 44
धर्मेण गमनमूर्ध्वं गमनमधस्ताद्भवत्यधर्मेण। ज्ञानेन चापवर्गो विपर्ययादिष्यते बन्धः ॥४४॥
While one goes upward because of the dharma, downward movement happens because of the acts opposed to dharma. From knowledge comes the release, while wrong knowledge results in the bondage.
It is knowledge that is the most essential for release. Wrong knowledge binds the purusha.