Frédéric Bastiat said this quote

When misguided public opinion honors what is despicable and despises what is honorable, punishes virtue and rewards vice, encourages what is harmful and discourages what is useful, applauds falsehood and smothers truth under indifference or insult, a nation turns it's back on progress and can be restored only by the terrible lessons of catastrophe.