BOSTON — The Boston Red Sox and AL Cy Young runner-up David Price have agreed to terms on a seven-year free-agent deal worth $217 million, a person familiar with the negotiations told The Associated Press.

The person spoke on condition of anonymity Tuesday night because the deal – the largest ever for a pitcher – is pending a physical. It is expected to be announced Friday, the person told the AP.

A left-hander who was the AL’s top pitcher in 2012 and the runner-up twice in seven full major league seasons, Price has a 3.09 ERA with 1,372 strikeouts and 104 wins. He went 18-5 with a 2.45 ERA in 2015, striking out 225.

Choosing the Red Sox reunites Price with president of baseball operations Dave Dombrowski, who until this August was the Detroit Tigers’ general manager. Dombrowski has had a hand in all three of Price’s moves the past two years.

After spending his entire career in Tampa Bay, Price was acquired by Detroit at the 2014 trade deadline. A year later, the Tigers traded him to the Blue Jays at the July 31 non-waiver deadline and Price helped Toronto reach the playoffs.

Now he will try to help turn around a team that has finished last in the AL East in three of the last four seasons. On its way to a 78-84, last-place finish in 2015, Boston brought in Dombrowski and he quickly went to work rebuilding the once-proud ballclub.

Dombrowski traded a package of prospects to San Diego for closer Craig Kimbrel last month.

Price bolsters a rotation that has lacked an ace since the Red Sox balked at the asking price for Jon Lester. Price joins a rotation that, barring injuries and trades, is expected to include Wade Miley, Rick Porcello, Eduardo Rodriguez and Clay Buchholz. Joe Kelly, Steven Wright and Henry Owens could bolster the bullpen, fill in as starters or serve as trade bait.