Vaisesika Sūtras
Vaisesika Sūtra 3.2.19
सुखदुःखज्ञाननिष्पत्त्यविशेषादैकात्म्यम् ॥१९॥
Due to non-distinction in the attainment of pleasure, pain, and knowledge, there is oneness.