Gustave Flaubert said this quote

Life must be a constant education; one must learn everything, from speaking to dying.