सर्वं परवशं दुःखं सर्वमात्मवशं सुखम् । एतद् विद्यात् समासेन लक्षणं सुखदुःखयोः ॥ १६० ॥
sanskrit
Everything that depends on others (gives) pain, everything that depends on oneself (gives) pleasure; know that this is the short definition of pleasure and pain.
english translation