Nagavagga - The Elephant :
If you do not get a prudent companion (who is fit) to live with you, who behaves well, and is wise, then like a king who leaves a conquered kingdom, you should live alone as an elephant in the elephant forest.
Dhammapada Verse 329.