Denis Diderot said this quote

Patriotism is an ephemeral motive that scarcely ever outlasts the particular threat to society that aroused it.