Bhagavad Gita: Chapter 2, Verse 62

ध्यायतो विषयान्पुंसः सङ्गस्तेषूपजायते ।
सङ्गात्सञ्जायते कामः कामात्क्रोधोऽभिजायते ॥ २-६२ ॥

dhyāyato viṣayān puṁsaḥ saṅgas teṣūpajāyate
saṅgāt sañjāyate kāmaḥ kāmāt krodho ’bhijāyate 2.62

While contemplating the objects of the senses, a person develops attachment for them, and from such attachment, lust develops, and from lust, anger arises.