NEW YORK -- CC Sabathia stood near his locker in the back of the oval Yankees clubhouse while excited teammates celebrated New York's return to the postseason.
"It feels like an eternity," he said, not trying to hide his relief.
With some help from one of the old guard, the next generation of Yankees will have a chance to make their mark in the playoffs.
Ending a rare two-year absence from the postseason, New York clinched a wild-card berth with three games to spare by beating the Boston Red Sox 4-1 on Thursday night for the franchise's 10,000th regular-season win.
Putting behind the venerated teams of Derek Jeter and Mariano Rivera, New York (87-72) opens its 52nd postseason with a winner-take-all game Tuesday. Alex Rodriguez and the Yankees most likely will face the Houston Astros or Los Angeles Angels.
"We'll never forget what Derek did for this organization," manager Joe Girardi said, "but you have to move on. Yogi retired. Mickey Mantle retired, and Joe D retired. All these guys, they were great players, but the Yankees continued to win."
Carlos Beltran homered along with rookies Greg Bird and Robert Refsnyder on a drizzly, chilly evening that made sultry summer days seem long ago. Sabathia (6-10) allowed one run in five innings to win for the second time since the All-Star break.
New York had failed to reach the playoffs in consecutive years for the first time since its 1982-93 drought, just before the start of a golden age that included five World Series titles and seven American League pennants from 1996 to 2009.
But these Yankees bear little resemblance to even their last postseason team of 36 months ago. Among the players swept by Detroit in the 2012 AL Championship Series, only Rodriguez, Brett Gardner, Mark Teixeira and Sabathia remain, and Teixeira will miss this postseason because of a broken leg.
Now Beltran, Jacoby Ellsbury, Chase Headley, Brian McCann and Didi Gregorius support a creaky starting rotation, a strong back end of the bullpen and sputtering middle relievers. Rodriguez, 40, played a big part, too, hitting 33 home runs after serving a drug suspension last season.
"It's kind of fitting that the 10,000th win clinches a postseason berth," Gardner said.
After Dellin Betances struck out Josh Rutledge to end it, the Yankees jogged onto the field to congratulate each other, along the lines of a normal win. Rookie catcher John Ryan Murphy and Betances did a little jumping, and the crowd, which seemed less than half the 40,033 tickets sold for the first night of October baseball, stood and applauded.
Players then put on goggles in the clubhouse as they sprayed champagne.
While the Yankees poured bubbly on their navy carpet for the first time since beating Baltimore in the 2012 division series, a wild card isn't what they expected. New York led the AL East by seven games before play on July 29 but has been a .500 club since then. The Yankees had never before failed to finish first in a season in which they led by more than six games.
"These guys to me did it a lot on just heart and hard work," Girardi said. "We had a lot of injuries. We have age on this team. We dealt with a lot of stuff. But they always kept fighting, and they always seemed to bounce back."
After losing the first three games of the series, New York built a 2-0 lead in the second against former Yankee Rich Hill (2-1), who revived his career this summer during a stint with the Long Island Ducks of the independent Atlantic League. Beltran hit his 19th homer, an opposite-field drive over the right-field scoreboard, and No. 9 hitter Brendan Ryan singled in a run for his first RBI since July 31.
Sabathia (6-10), who gave up an RBI single to Mookie Betts in the fifth, is 2-1 with a 2.17 ERA in five starts since returning from the disabled list and wrapping a tighter brace around his surgically repaired right knee. Adam Warren pitched three scoreless innings that included a behind-the-legs glove stop of Sandy Leon's grounder for the final out of the sixth with a man on.
Bird homered off Jean Machi in the seventh, and Refsnyder added an insurance run by homering off Heath Hembree in the eighth, his second career homer. Betances closed with three straight outs for his ninth save in 13 chances.
Sabathia thought back to his late-summer stint on the DL.
"I was scared. I was nervous, for sure," he said.
But now Sabathia was excited "to be able to pop champagne and exhale for a second."
"I don't think it could have ended any better than we did, to clinch the way we did," Warren said. "He's done so many great things in this game, and to be doing it like he is right now when we need him is big."
New York drew 3,193,795 for 80 home dates, an average of 39,922 and its lowest total at new Yankee Stadium, which opened in 2009. Still, the Yankees led the AL in attendance for the 13th straight season.
Yankees: Ellsbury and Headley didn't play because of sore backs.
St. Louis Cardinals tie longest win streak of season with 13th straight
The St. Louis Cardinals tied the New York Yankees and Oakland Athletics for the longest win streak of the season with their 13th consecutive victory in Game 1 of a doubleheader on Friday.
Indians activate Shane Bieber from IL to start against White Sox
The Cleveland Indians have activated right-hander Shane Bieber from the 60-day injured list for a start Friday night against the Chicago White Sox.
Goldschmidt helps Cardinals beat Cubs for 13th straight win
— The surging St. Louis Cardinals soared to their 13th straight win Friday, using homers by Paul Goldschmidt and Tyler O’Neill to top the Chicago Cubs 8-5 in the opener of a doubleheader.
Tyler O'Neill smashes a 454-foot home run clear out of Wrigley
The Cardinals extend their lead to 6-0 over the Cubs as Tyler O'Neill demolishes a home run that leaves the stadium.
Chicago Cubs plan to be 'really active" in MLB free agency, says team president Jed Hoyer
Chicago Cubs president Jed Hoyer says his team is planning to be "really active in free agency" this offseason.
Tampa Bay Rays rookie Wander Franco returns from hamstring injury
Rays rookie Wander Franco was reinstated from the 10-day injured list Friday after missing two weeks with a right hamstring injury.