This is one of my favorite quotes. I've always seen it as a "Chinese Proverb". I don't know if that is true or not. Doesn't matter, really. It is an important idea anyway.
The birds of sorrow will fly overhead, but you shouldn't let them build a nest in your hair.