Claimed to be either a Chinese or Japanese proverb. Often attributed to Confucius. Variant: "If you want revenge, dig two graves"
Chinese Proverb. Sometimes misattributed to Seneca
“You cannot prevent the birds of sorrow from flying over your head, but you can prevent them from building nests in your hair.”