Bhagavad Gita Chapter 13.22
puruṣaḥ prakṛti-stho hi
bhuńkte prakṛti-jān guṇān
kāraṇaḿ guṇa-sańgo ’sya
sad-asad-yoni-janmasu
Translation
The living entity in material nature thus follows the ways of life, enjoying the three modes of nature. This is due to his association with that material nature. Thus he meets with good and evil among various species.