Arthur Schopenhauer said this quote

(Politeness is) a tacit agreement that people's miserable defects whether moral or intellectual shall on either side be ignored and not be made the subject of reproach.