Yoga Sutra 4.27 ideas arise from samskaras
Sūtra IV.27
At intervals in it, other ideas arise from saṃskāra-s
His mind is being borne on towards discrimination, carried along on the current towards Knowledge-of the-difference. But at intervals, other ideas arise, in the form ‘I am’ or ‘It is mine’. From where? From previous saṃskāra-s, whose seed-power is fading away.
At intervals in it, other ideas arise from saṃskāra-s. His mind his consciousness of Puruṣa the Knower is being borne on towards discrimination further and further moving down towards discrimination, carried along on the current towards Knowledge-of-the-difference (viveka-khyāti), impelled by the stream towards the difference between Puruṣa and mind-sattva. But at intervals, in gaps of the current of discriminative ideas, other ideas of delusive character arise, in the form ‘I am’ or ‘It is mine’.
From where do they come? From previous saṃskāra-s of an opposite kind laid down previously, whose seed-power in the form of taints, etc. is fading away, these other ideas arise.