Arthur Schopenhauer said this quote

It often happens that we blurt out things that may in some kind of way be harmful to us, but we are silent about things that may make us look ridiculous; because in this case effect follows very quickly on cause.