Yoga Sutras of Patanjali · 3.22
सोपक्रमं निरुपक्रमं च कर्म तत्संयमादपरान्तज्ञानमरिष्टेभ्यो वा॥२२॥
sopakramaṁ nirupakramaṁ ca karma tatsaṁyamād aparānta-jñānam ariṣṭebhyo vā
Karma is of two kinds — actively manifesting and dormant. By sanyama on these, or from omens, knowledge of the time of death arises.
— Yoga Sutras of Patanjali 3.22
Source: Sanskrit attributed to Patanjali (c. 2nd century BCE – 4th century CE). Public-domain English readings drawn from Swami Vivekananda's 'Raja Yoga' (1896) and Charles Johnston's 'The Yoga Sutras of Patanjali' (1912).