BOSTON -- The Detroit Tigers have the best pitcher in the American League and the best hitter in baseball.
Jon Lester was better than both.
It ended the Tigers' right-hander's chance to become just the second pitcher to open a season with a 20-1 record.
"We all know who we're facing tonight and what he's done this season," Lester said, "but I can't worry about Max Scherzer. I have to worry about the other nine guys in the lineup."
The Tigers lead the AL in hitting and Cabrera leads all batters with a .355 average.
So the Red Sox were in big trouble when he came up with the bases loaded and two outs in the fifth inning with Detroit leading 1-0.
Lester's first two pitches were balls, but he recovered to get Cabrera to ground to shortstop Stephen Drew for a forceout at second base.
"The key to the game," Red Sox manager John Farrell said.
"Obviously, I don't want to be in that situation with him up," Lester said, "the best hitter on the planet. You're trying to really minimize damage."
Koji Uehara pitched the ninth for his 17th save in 20 opportunities and extended his scoreless streak to 25 innings as Boston won for the eighth time in 10 games.
Lester (13-8) lowered his ERA to 1.71 in his past six starts. He allowed one earned run and eight hits with a season-high nine strikeouts and no walks.
Scherzer (19-2), who won his first 13 decisions, lost for the first time since July 13 when the Texas Rangers beat him 7-1.
"For me, it's a team thing," he said. "If I win 20, it's a team achievement."
Scherzer can thank his hitters for many of those wins. The 7.17 runs per nine innings they scored for him going into his 28th start on Tuesday were the most among all AL pitchers.
But Lester shut them down.
"He was totally different than the first time we faced him," Torii Hunter said. "He was the Jon Lester of old."
Lester struggled for nearly two months before the All-Star Game. In one game, he allowed five runs in 5 2/3 innings against the Tigers. But he's 5-2 since the break.
"It was a well-pitched game on both sides," Farrell said. "We didn't have anything going against Scherzer until the two-out base hit by Will for the two RBIs. Jon was very good when we needed it."
Roger Clemens is the only pitcher to start off at 20-1 and ended up 20-3 with the New York Yankees in 2001. Rube Marquard was the only other pitcher with a 19-1 record, but lost his next decision in 1912 with the New York Giants.
The Tigers lost for the second time in six games despite the return of Cabrera, who missed three games with abdominal and groin problems. He went 0 for 4.
Scherzer rebounded from his worst start of the season and allowed two runs and five hits with eight strikeouts and three walks before leaving with runners at first and second and no outs in the eighth.
He struck out the side in the first, allowed a single in the second and then pitched two perfect innings.
He started the fifth by striking out Mike Carp before Jonny Gomes singled. Drew followed with a ground-rule double that went into Boston's bullpen in right-center field on one hop. After David Ross struck out, Middlebrooks put Boston ahead 2-1 with a single to center on a first-pitch slider.
"You may get one good pitch in an at-bat to hit (against Scherzer)," Middlebrooks said. "You can't miss it."
The Tigers got base runners against Lester in four of the first six innings, but he worked out of three of those jams.
Lester retired the next seven batters, four on strikeouts, before Pena reached first on a fielding error by third baseman Middlebrooks with one out in the fifth. Iglesias struck out before singles by Austin Jackson and Hunter loaded the bases. But Lester retired Cabrera.
Detroit threatened again in the sixth when Prince Fielder singled and took second on a one-out single by Infante. But Lester struck out Matt Tuiasosopo for the third time and retired Pena on a fly out.
Scherzer "pitched terrific. Early on I thought he was as sharp as he's been all year," Tigers manager Jim Leyland said. "Tonight, Lester pitched better."
Boston starters have allowed three runs or fewer in 13 of its past 14 games. ... Detroit's Victor Martinez extended his hitting streak to 10 games with a single in the eighth. ... Red Sox CF Jacoby Ellsbury missed the game with a sore thumb. ... Rick Porcello (11-7) pitches for Detroit against Ryan Dempster (7-9) in the finale of the three-game series on Wednesday night.
Los Angeles will look to extend series lead over Atlanta in Game 2
Atlanta Braves (88-73, first in the NL East) vs. Los Angeles Dodgers (106-56, second in the NL West)
Why MLB players are making so many baserunning mistakes
Tim Kurkjian breaks down the baserunning mistakes in Game 1 of the NLCS and looks ahead to Game 2.
MLB playoffs 2021: Inside Boston Red Sox center fielder Enrique Hernandez's historic October stretch
Boston's breakout slugger is rewriting postseason record books with every swing of the bat -- and showing the world the star he always knew he could become.
Atlanta Braves new 'big boss' Austin Riley walks off Los Angeles Dodgers in Game 1 of NLCS
Austin Riley downed the Dodgers with a game-tying home run in the fourth inning, followed by a game-winning single in the ninth.
'Just a bad read on my part' -- Chris Taylor's baserunning blunder added to Dodgers' downfall in NLCS opener
Chris Taylor interrupted his sprint just before reaching the halfway point between second and third base and was tagged out after a brief rundown, ending the half-inning and thwarting one of few chances the Dodgers had to tack on runs in Game 1.
2021 MLB playoffs: Takeaways and best moments from Saturday's league championship series action
From Boston's two grand slams to Atlanta's walk-off win, Saturday's league championship series action was the latest display of October magic.