[Editor’s Note: This article was originally published in April 2017. Each stock pick has been updated to reflect changes in the market.]A few years ago, InvestorPlace contributor Dan Burrows highlighted the ten best-performing S&P 500 stocks of the past decade. The most important lesson one finds by studying these high-flying stocks is that patience wins out over all other attributes of a successful investor.A classic example of how true this is involves the Fidelity Magellan Fund (MUTF:FMAGX), the large mutual fund made famous by portfolio manager Peter Lynch. Lynch ran the fund for 13 years from 1977 until 1990, growing it from $20 million to $14 billion before stepping aside.InvestorPlace – Stock Market News, Stock Advice & Trading TipsFidelity studied the returns of Fidelity Magellan unitholders over those 13 years to see how they compared to the legendary portfolio manager. While Lynch managed to achieve a 29% annual return over this period, the average investor lost money.Patience would have served those investors well, as the ups and downs of the stock market shook them out of their positions — and in doing so, deprived them of millions of dollars in profits. A $10,000 investment in 1977 held until 1990 was worth $273,947 by the end of that 13-year period.I’m not Peter Lynch, but I can say with some confidence that the following names are the nine best stocks to buy for the next decade. * 8 Risky Stocks to Watch as Earnings Season Kicks Off Let’s take a look.Source: Shutterstock Amazon (AMZN)Not only is Amazon (NASDAQ:AMZN) CEO and founder Jeff Bezos a great chief executive, but Amazon has its hands in so many pies — including a very profitable cloud business that generated $7.3 billion of operating income last year — that it’s hard to fathom just how big Amazon could be a decade from now.While Amazon’s AWS cloud business is a big deal, Amazon Prime is the service that delivers the goods when it comes to building the foundation for AMZN stock. More than 100 million people subscribe to Amazon Prime at $119 per year.It’s not the $10-plus billion in annual subscription revenue that matters, but the amount each of those subscribers spends on other Amazon products. Statistics show that 76% of Amazon Prime members spend more than they did before paying the annual $99 fee.That’s what you call “pulling power,” and it’s a big reason why AMZN stock will be a winner for the long haul and why it’s a top stock to buy for the next decade.Source: Yuanbin Du Via Flickr Apple (AAPL)You can say what you want about the iPhone maker’s best days being behind it, but I have a feeling Apple (NASDAQ:AAPL) will continue to create products people want to buy for years to come.What these products are, I couldn’t tell you … What I do know is that Apple will continue to generate a huge amount of free cash flow to reward shareholders for their patience and loyalty.That loyalty translated into AAPL stock becoming the world’s first publicly traded company to hit a trillion-dollar valuation. * 7 Stocks to Buy for the Coming Recession While Apple is no longer reporting iPhone numbers, its Services revenue continues to look more and more promising.Source: Shutterstock Berkshire Hathaway (BRK.B)Warren Buffett is 88 years old. Eventually, he’s going to step out of the game. The argument is that his departure will create a panic that will send Berkshire Hathaway (NYSE:BRK.A, NYSE:BRK.B) stock spiraling downward. Personally, I don’t subscribe to that theory …Businesses — whether it be a huge holding company like Buffett’s or something much less grandiose — are valued by calculating the present value of its future cash flows. Berkshire Hathaway’s are significant. Another way is to value a business is to look at the sum of all its parts.Berkshire Hathaway owns hundreds of businesses; each of these firms, if sold at auction, would be worth more than the current stock price would seem to reflect. If Buffett moved on and the company was broken up in a prudent manner over an extended period, Berkshire Hathaway investors would benefit greatly from such a process.The best part of Berkshire Hathaway? You get a quasi-mutual fund with a diversified group of holdings and no management fees.That’s the best kind of buy-and-hold investment.Source: Shutterstock Ulta Beauty (ULTA)The retail industry is in a freefall at the moment, yet Illinois-based Ulta Beauty (NASDAQ:ULTA) is busy growing its network of stores — which currently number over 1,100 — by 100 per year. It expects to build out its brick-and-mortar footprint to 1,700 stores over the next decade.Ulta’s business model provides a shopping experience that is unique in a beauty market where no one firm controls a big chunk of market share, not even Sephora. * 7 Stocks to Buy for the Coming Recession With consumer confidence growing, Ulta stands a good chance over the next decade of bumping this number significantly higher. ULTA shares might be expensive at nearly 30 times earnings, but that’s the price you pay to own the best.Source: Shutterstock Sherwin-Williams (SHW)Ulta Beauty helps women with their beauty needs; Sherwin-Williams Co (NYSE:SHW) does the same for houses and businesses around the world.What’s the one thing real estate professionals suggest you should do when selling your home? Give it a fresh coat of paint. It’s the most cost-effective improvement you can make to bring in better offers.Sherwin-Williams originally tried to buy Mexican paint company Comex in 2014, but it was beaten out by PPG Industries, Inc. (NYSE:PPG). More than two years later, it bought The Valspar Corp, significantly improving its position in the coatings business outside North America.Over the past decade, SHW has achieved a return of nearly 500%, significantly greater than the S&P 500’s 190% climb in that same period.If any stock can repeat this kind of performance over the next decade, Sherwin-Williams has to be at the top of the list.Source: Mike Mozart via Flickr Kraft Heinz (KHC)Earlier this year, the management of Kraft Heinz Co (NASDAQ:KHC) put quite the scare into the 169,000 Unilever plc (ADR) (NYSE:UL) employees with a potential $143 billion offer to buy the company. Fortunately (for employees), Unilever’s management told 3G Capital and Berkshire Hathaway, which control KHC, to take a hike.Kraft Heinz is going to make another acquisition, most likely this year. And when it does, the first thing 3G is going to do is trim the fat. (Read this article about Tim Hortons to understand their cost-cutting ruthlessness.) That’s going to mean the loss of a lot of jobs.While that’s terrible for the people on the receiving end of the pink slips, it’s been proven by 3G Capital time and again to significantly increase the bottom line. Shareholders definitely will win as Kraft Heinz guts PepsiCo, Inc. (NYSE:PEP) or some other vulnerable target.Kraft Heinz stock did take a big hit in February after the company took a huge impairment charge and revealed that the SEC has been probing its accounting practices. KHC also cut its dividend by 36% that month. But the company has more than enough cash to cover its dividend, and its products will continue to sell well because people always need to eat, while its offerings remain very popular in the U.S. Moreover, KHC stock still has an impressive 4.8% dividend yield. * 7 Stocks to Buy for the Coming Recession Source: Mike Mozart via Flickr (Modified) Five Below (FIVE)Teen discount clothing chain Five Below Inc (NASDAQ:FIVE) saw its stock price jump 30% in the past year. In an age where you have retailers going out of business left and right, Jim Cramer is right to rave about this stock.In today’s retail, you either want to be in the discount or luxury businesses, but not in the deadly middle. Five Below has a plan to grow revenues and earnings by 28% every year for the next five years. In 2019, revenues and earnings are expected to grow 22% and 48.6%, respectively, to $1.56 billion and $2.66 per share.Five Below expects to continue opening new stores, reaching 2,000 stores open in the U.S. at some point in the future. While it seems like an ambitious goal given how many stores are closing these days, Five Below has a very talented management team led by CEO Joel Anderson, whose previous job was CEO of Walmart.com (NYSE:WMT).At prices $5 or below, Five Below delivers a concept that’s unique to teen and pre-teen customers. And it should deliver plenty of returns over the next 10 years.Source: Shutterstock Cracker Barrel (CBRL)Over the past decade, Cracker Barrel Old Country Store, Inc. (NASDAQ:CBRL) has more than doubled the performance of the S&P 500 by delivering consistent results. Its return on equity is an impressive 34%.CBRL’s unique restaurant/retail concept generates approximately 80% of its revenue from its restaurants, with its retail shop the remaining 20%. The average store throws off revenue of $4.6 million. The retail business generates sales per square foot of $440 and 50% gross margins. * 7 Stocks to Buy for the Coming Recession Cracker Barrel features a strong female presence in upper management, representing what a modern progressive American company is supposed to look like at the top. Good on them … and good for you, because that kind of diversity will pay off in spades.Source: Shutterstock ResMed (RMD)Who knew that sleep apnea paid so well?ResMed Inc. (NYSE:RMD) manufactures medical devices and provides cloud-based software applications for medical professionals to treat and manage sleep apnea and chronic obstructive pulmonary disease (COPD). Treating 2 million patients daily, ResMed has become good at reducing healthcare costs by minimizing the effects of chronic disease.Good businesses make and save people and companies money. ResMed does both.Over the past decade, ResMed has delivered an annual return to shareholders of 16.98%, much greater than the S&P 500.According to a recent study, 26% of adults have sleep apnea — a disorder that can wreak havoc on a person’s heart, not to mention a marriage due to both partners’ lack of sleep. My dad died as a result of COPD, a disease that affects more than 200 million people worldwide and costs the healthcare system more than $50 billion per year in the U.S. alone.ResMed has growth opportunities in Latin America, Eastern Europe and China and India — all huge markets that will keep it busy for the next decade and beyond.Of all the stocks to buy for the next decade, ResMed is my pick for most reliable given the markets it serves.As of this writing, Will Ashworth did not hold a position in any of the aforementioned securities. More From InvestorPlace * 4 Top American Penny Pot Stocks (Buy Before June 21) * 7 Stocks to Buy for the Coming Recession * 10 Smart Dividend Stocks for the Rest of the Year * 5 Tech Stocks That Are Far Too Risky Right Now Compare Brokers The post The 9 Best Stocks to Buy for the Next Decade appeared first on InvestorPlace.