Yōga Sūtras
Yōga Sūtra 3.18
संस्कारसाक्षात्करणात्पूर्वजातिज्ञानम्।
By direct perception of previous impressions (and its samyama), one gets the knowledge of his previous births.