Which president issued a warning during his farewell address against “foreign entanglements” and the “baneful effects of the Spirit of Party?”

Which president issued a warning during his farewell address against “foreign entanglements” and the “baneful effects of the Spirit of Party?”