Vaisesika Sūtras
Vaisesika Sūtra 5.2.15
Pleasure and pain arise from the conjunction of the ātman, the senses, the mind, and the object.