Bhagavad Gita 2.62

ध्यायतो विषयान्पुंस: सङ्गस्तेषुपजायते |
सङ्गत्सञ्जायते कामः कामात्क्रोधोऽभिजायते

Translation

While contemplating on the objects of the senses, one develops attachment to them. Attachment leads to desire, and from desire arises anger.