Thomas Love Peacock said this quote

She discovered, when it was too late, that she had mistaken the means for the end—that riches, rightly used, are instruments of happiness, but are not in themselves happiness.