Arthur Schopenhauer said this quote

Almost all of our sorrows spring out of our relations with other people.