Alfred Adler said this quote

The test of one's behavior pattern is their relationship to society, relationship to work and relationship to sex.