Gautama Buddha said this quote

Let a man leave anger, let him forsake pride, let him overcome all bondage! No sufferings befall the man who is not attached to name and form and who calls nothing his own.[Verse 221] TR- Friedrich Max Müller